Commit be72ae26 authored by Daniel Vetter's avatar Daniel Vetter Committed by Dave Airlie

drm: kill procfs callbacks

Not used by any driver (rightly so!). Kill them.
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 1da3f87e
...@@ -151,7 +151,6 @@ int drm_proc_create_files(struct drm_info_list *files, int count, ...@@ -151,7 +151,6 @@ int drm_proc_create_files(struct drm_info_list *files, int count,
int drm_proc_init(struct drm_minor *minor, int minor_id, int drm_proc_init(struct drm_minor *minor, int minor_id,
struct proc_dir_entry *root) struct proc_dir_entry *root)
{ {
struct drm_device *dev = minor->dev;
char name[64]; char name[64];
int ret; int ret;
...@@ -172,14 +171,6 @@ int drm_proc_init(struct drm_minor *minor, int minor_id, ...@@ -172,14 +171,6 @@ int drm_proc_init(struct drm_minor *minor, int minor_id,
return ret; return ret;
} }
if (dev->driver->proc_init) {
ret = dev->driver->proc_init(minor);
if (ret) {
DRM_ERROR("DRM: Driver failed to initialize "
"/proc/dri.\n");
return ret;
}
}
return 0; return 0;
} }
...@@ -216,15 +207,11 @@ int drm_proc_remove_files(struct drm_info_list *files, int count, ...@@ -216,15 +207,11 @@ int drm_proc_remove_files(struct drm_info_list *files, int count,
*/ */
int drm_proc_cleanup(struct drm_minor *minor, struct proc_dir_entry *root) int drm_proc_cleanup(struct drm_minor *minor, struct proc_dir_entry *root)
{ {
struct drm_device *dev = minor->dev;
char name[64]; char name[64];
if (!root || !minor->proc_root) if (!root || !minor->proc_root)
return 0; return 0;
if (dev->driver->proc_cleanup)
dev->driver->proc_cleanup(minor);
drm_proc_remove_files(drm_proc_list, DRM_PROC_ENTRIES, minor); drm_proc_remove_files(drm_proc_list, DRM_PROC_ENTRIES, minor);
sprintf(name, "%d", minor->index); sprintf(name, "%d", minor->index);
......
...@@ -792,8 +792,6 @@ struct drm_driver { ...@@ -792,8 +792,6 @@ struct drm_driver {
void (*master_drop)(struct drm_device *dev, struct drm_file *file_priv, void (*master_drop)(struct drm_device *dev, struct drm_file *file_priv,
bool from_release); bool from_release);
int (*proc_init)(struct drm_minor *minor);
void (*proc_cleanup)(struct drm_minor *minor);
int (*debugfs_init)(struct drm_minor *minor); int (*debugfs_init)(struct drm_minor *minor);
void (*debugfs_cleanup)(struct drm_minor *minor); void (*debugfs_cleanup)(struct drm_minor *minor);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment