aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_pci.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-11-03 16:24:37 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-04-23 04:32:53 -0400
commit9de1b51f1fae6476155350a0670dc637c762e718 (patch)
treeda8efba2fe0c63586aa3e789179f75cdbcbd44e4 /drivers/gpu/drm/drm_pci.c
parent5829d1834e5486e83547f36576b160023c9609c2 (diff)
drm: remove drm_bus->get_name
The only user is the info debugfs file, so we only need something human readable. Now for both pci and platform devices we've used the name of the underlying device driver, which matches the name of the drm driver in all cases. So we can just use that instead. The exception is usb, which used a generic "USB". Not to harmful with just one usb driver, but better to use "udl", too. With that converted we can rip out all the ->get_name implementations. Reviewed-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/drm_pci.c')
-rw-r--r--drivers/gpu/drm/drm_pci.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/gpu/drm/drm_pci.c b/drivers/gpu/drm/drm_pci.c
index 047c51046d94..1fbe22a254e1 100644
--- a/drivers/gpu/drm/drm_pci.c
+++ b/drivers/gpu/drm/drm_pci.c
@@ -137,12 +137,6 @@ static int drm_get_pci_domain(struct drm_device *dev)
137 return pci_domain_nr(dev->pdev->bus); 137 return pci_domain_nr(dev->pdev->bus);
138} 138}
139 139
140static const char *drm_pci_get_name(struct drm_device *dev)
141{
142 struct pci_driver *pdriver = dev->driver->kdriver.pci;
143 return pdriver->name;
144}
145
146static int drm_pci_set_busid(struct drm_device *dev, struct drm_master *master) 140static int drm_pci_set_busid(struct drm_device *dev, struct drm_master *master)
147{ 141{
148 int len, ret; 142 int len, ret;
@@ -287,7 +281,6 @@ void drm_pci_agp_destroy(struct drm_device *dev)
287} 281}
288 282
289static struct drm_bus drm_pci_bus = { 283static struct drm_bus drm_pci_bus = {
290 .get_name = drm_pci_get_name,
291 .set_busid = drm_pci_set_busid, 284 .set_busid = drm_pci_set_busid,
292}; 285};
293 286