drm: restrict the device list for shadow attached drivers
Daniel Vetter authored
There's really no need for the drm core to keep a list of all
devices of a given driver - the linux device model keeps perfect
track of this already for us.

The exception is old legacy ums drivers using pci shadow attaching.
So rename the lists to make the use case clearer and rip out everything
else.

v2: Rebase on top of David Herrmann's drm device register changes.
Also drop the bogus dev_set_drvdata for platform drivers that somehow
crept into the original version - drivers really should be in full
control of that field.

v3: Initialize driver->legacy_dev_list outside of the loop, spotted by
David Herrmann.

v4: Rebase on top of the newly created host1x drm_bus for tegra.

Cc: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
b3f2333d
Name Last commit Last update
..
armada drm/armada: directly call drm_put_dev in ->remove
ast drm: Add separate Kconfig option for fbdev helpers
cirrus drm/cirrus: use drm_set_preferred_mode
exynos drm/exynos: call drm_put_dev directly from ->remove
gma500 Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux
i2c drm/i2c: tda998x: set VIF for full range, underscanned display
i810 drm: Kill drm perf counter leftovers
i915 Merge tag 'drm-intel-next-2013-11-29' of git://people.freedesktop.org/~danvet/drm-intel into drm-next
mga drm: Kill drm perf counter leftovers
mgag200 drm/mgag200: drop pointless info print.
msm drm/msm: call drm_put_dev directly in ->remove
nouveau Merge branch 'drm-nouveau-next' of git://anongit.freedesktop.org/git/nouveau/linux-2.6 into drm-fixes
omapdrm drm/omap: call drm_put_dev directly in ->remove
qxl drm: Push dirtyfb ioctl kms locking down to drivers
r128 drm: rip out drm_core_has_MTRR checks
radeon radeon_pm: fix oops in hwmon_attributes_visible() and radeon_hwmon_show_temp_thresh()
rcar-du drm/rcar: call drm_put_dev directly in the ->remove hook
savage drm: rip out drm_core_has_MTRR checks
shmobile drm/shmob: call drm_put_dev directly from ->remove hook
sis drm: rip out drm_core_has_MTRR checks
tdfx drm: rip out drm_core_has_MTRR checks
tegra drm: restrict the device list for shadow attached drivers
tilcdc drm/tilcdc: call drm_put_dev directly from ->remove
ttm Merge branch 'ttm-fixes-3.13' of git://people.freedesktop.org/~thomash/linux into drm-fixes
udl drm: Push dirtyfb ioctl kms locking down to drivers
via
vmwgfx
Kconfig
Makefile
README.drm
ati_pcigart.c
drm_agpsupport.c
drm_auth.c
drm_buffer.c
drm_bufs.c
drm_cache.c
drm_context.c
drm_crtc.c
drm_crtc_helper.c
drm_debugfs.c
drm_dma.c
drm_dp_helper.c
drm_drv.c
drm_edid.c
drm_edid_load.c
drm_encoder_slave.c
drm_fb_cma_helper.c
drm_fb_helper.c
drm_flip_work.c
drm_fops.c
drm_gem.c
drm_gem_cma_helper.c
drm_global.c
drm_hashtab.c
drm_info.c
drm_ioc32.c
drm_ioctl.c
drm_irq.c
drm_lock.c
drm_memory.c
drm_mm.c
drm_modes.c
drm_pci.c
drm_platform.c
drm_prime.c
drm_rect.c
drm_scatter.c
drm_stub.c
drm_sysfs.c
drm_trace.h
drm_trace_points.c
drm_usb.c
drm_vm.c
drm_vma_manager.c