diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2014-08-29 06:12:43 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-09-10 03:43:04 -0400 |
commit | 915b4d11b8b9e7b84ba4a4645b6cc7fbc0c071cf (patch) | |
tree | c823f519117c5b1e8752626a59e2efd2565100ac /drivers/gpu/drm/omapdrm | |
parent | 1e444be0ef1bda2b180ecdedfa4c5d32bf236a5d (diff) |
drm: add driver->set_busid() callback
One step closer to dropping all the drm_bus_* code:
Add a driver->set_busid() callback and make all drivers use the generic
helpers. Nouveau is the only driver that uses two different bus-types with
the same drm_driver. This is totally broken if both buses are available on
the same machine (unlikely, but lets be safe). Therefore, we create two
different drivers for each platform during module_init() and set the
set_busid() callback respectively.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/omapdrm')
-rw-r--r-- | drivers/gpu/drm/omapdrm/omap_drv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_drv.c b/drivers/gpu/drm/omapdrm/omap_drv.c index 002b9721e85a..862ba03c236c 100644 --- a/drivers/gpu/drm/omapdrm/omap_drv.c +++ b/drivers/gpu/drm/omapdrm/omap_drv.c | |||
@@ -629,6 +629,7 @@ static struct drm_driver omap_drm_driver = { | |||
629 | .lastclose = dev_lastclose, | 629 | .lastclose = dev_lastclose, |
630 | .preclose = dev_preclose, | 630 | .preclose = dev_preclose, |
631 | .postclose = dev_postclose, | 631 | .postclose = dev_postclose, |
632 | .set_busid = drm_platform_set_busid, | ||
632 | .get_vblank_counter = drm_vblank_count, | 633 | .get_vblank_counter = drm_vblank_count, |
633 | .enable_vblank = omap_irq_enable_vblank, | 634 | .enable_vblank = omap_irq_enable_vblank, |
634 | .disable_vblank = omap_irq_disable_vblank, | 635 | .disable_vblank = omap_irq_disable_vblank, |