The driver core is better at tracking the devices associated to a device, no need to do this ourselves.
Signed-off-by: Sascha Hauer s.hauer@pengutronix.de --- drivers/gpu/drm/drm_pci.c | 1 - include/drm/drmP.h | 3 --- 2 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/drm_pci.c b/drivers/gpu/drm/drm_pci.c index b53427e..c0d47ab 100644 --- a/drivers/gpu/drm/drm_pci.c +++ b/drivers/gpu/drm/drm_pci.c @@ -399,7 +399,6 @@ int drm_pci_init(struct drm_driver *driver, struct pci_driver *pdriver) { DRM_DEBUG("\n");
- INIT_LIST_HEAD(&driver->device_list); driver->bus = &drm_pci_bus;
return pci_register_driver(pdriver); diff --git a/include/drm/drmP.h b/include/drm/drmP.h index d14c23a..3c14c05 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h @@ -915,9 +915,6 @@ struct drm_driver { int num_ioctls; const struct file_operations *fops; struct drm_bus *bus; - - /* List of devices hanging off this driver */ - struct list_head device_list; };
#define DRM_MINOR_UNASSIGNED 0