return r;
 }
 
-static void radeon_debugfs_remove_files(struct radeon_device *rdev);
-
 /**
  * radeon_device_fini - tear down the driver
  *
        rdev->rmmio = NULL;
        if (rdev->family >= CHIP_BONAIRE)
                radeon_doorbell_fini(rdev);
-       radeon_debugfs_remove_files(rdev);
 }
 
 
 #endif
        return 0;
 }
-
-static void radeon_debugfs_remove_files(struct radeon_device *rdev)
-{
-#if defined(CONFIG_DEBUG_FS)
-       unsigned i;
-
-       for (i = 0; i < rdev->debugfs_count; i++) {
-               drm_debugfs_remove_files(rdev->debugfs[i].files,
-                                        rdev->debugfs[i].num_files,
-                                        rdev->ddev->primary);
-       }
-#endif
-}