Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5c484cee authored by Daniel Vetter's avatar Daniel Vetter
Browse files

drm: Remove drm_driver->set_busid hook



The only special-case is pci devices, and we can easily handle this in
the core. Do so and drop a pile of boilerplate from drivers.

Acked-by: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170524145212.27837-5-daniel.vetter@ffwll.ch
parent 76bba2cd
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -734,7 +734,6 @@ static struct drm_driver kms_driver = {
	.open = amdgpu_driver_open_kms,
	.postclose = amdgpu_driver_postclose_kms,
	.lastclose = amdgpu_driver_lastclose_kms,
	.set_busid = drm_pci_set_busid,
	.unload = amdgpu_driver_unload_kms,
	.get_vblank_counter = amdgpu_get_vblank_counter_kms,
	.enable_vblank = amdgpu_enable_vblank_kms,
+0 −1
Original line number Diff line number Diff line
@@ -197,7 +197,6 @@ static struct drm_driver driver = {

	.load = ast_driver_load,
	.unload = ast_driver_unload,
	.set_busid = drm_pci_set_busid,

	.fops = &ast_fops,
	.name = DRIVER_NAME,
+0 −1
Original line number Diff line number Diff line
@@ -84,7 +84,6 @@ static struct drm_driver bochs_driver = {
	.driver_features	= DRIVER_GEM | DRIVER_MODESET,
	.load			= bochs_load,
	.unload			= bochs_unload,
	.set_busid		= drm_pci_set_busid,
	.fops			= &bochs_fops,
	.name			= "bochs-drm",
	.desc			= "bochs dispi vga interface (qemu stdvga)",
+0 −1
Original line number Diff line number Diff line
@@ -132,7 +132,6 @@ static struct drm_driver driver = {
	.driver_features = DRIVER_MODESET | DRIVER_GEM,
	.load = cirrus_driver_load,
	.unload = cirrus_driver_unload,
	.set_busid = drm_pci_set_busid,
	.fops = &cirrus_driver_fops,
	.name = DRIVER_NAME,
	.desc = DRIVER_DESC,
+1 −0
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ void drm_lastclose(struct drm_device *dev);
int drm_irq_by_busid(struct drm_device *dev, void *data,
		     struct drm_file *file_priv);
void drm_pci_agp_destroy(struct drm_device *dev);
int drm_pci_set_busid(struct drm_device *dev, struct drm_master *master);

/* drm_prime.c */
int drm_prime_handle_to_fd_ioctl(struct drm_device *dev, void *data,
Loading