mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
5829d1834e
commit
9de1b51f1f
5 changed files with 2 additions and 24 deletions
|
@ -137,12 +137,6 @@ static int drm_get_pci_domain(struct drm_device *dev)
|
|||
return pci_domain_nr(dev->pdev->bus);
|
||||
}
|
||||
|
||||
static const char *drm_pci_get_name(struct drm_device *dev)
|
||||
{
|
||||
struct pci_driver *pdriver = dev->driver->kdriver.pci;
|
||||
return pdriver->name;
|
||||
}
|
||||
|
||||
static int drm_pci_set_busid(struct drm_device *dev, struct drm_master *master)
|
||||
{
|
||||
int len, ret;
|
||||
|
@ -287,7 +281,6 @@ void drm_pci_agp_destroy(struct drm_device *dev)
|
|||
}
|
||||
|
||||
static struct drm_bus drm_pci_bus = {
|
||||
.get_name = drm_pci_get_name,
|
||||
.set_busid = drm_pci_set_busid,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue