]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: Drop load/unload drm_driver ops
authorArchit Taneja <architt@codeaurora.org>
Mon, 2 May 2016 05:35:54 +0000 (11:05 +0530)
committerRob Clark <robdclark@gmail.com>
Sun, 8 May 2016 14:22:19 +0000 (10:22 -0400)
commit47c0ef786e90f9c062ad1ce6c9006aa0e4f2963c
tree7c506f5fa3771649d8c4918d632f763104c721ef
parent7e5466dba5d8cb18c3d0292ecb42c3a1803103ac
drm/msm: Drop load/unload drm_driver ops

The load/unload drm_driver ops are deprecated. They should be removed as
they result in creation of devices visible to userspace even before
the drm_device is registered.

Drop these ops and use drm_dev_alloc/register and drm_dev_unregister/unref
to explicitly create and destroy the drm device in the msm platform
driver's bind and unbind ops. With this in use, the drm connectors are
only registered once the drm_device is registered.

It also fixes the issue of stray debugfs files after the msm module is
removed. With this, all the debugfs files are removed, and allows
successive module insertions/removals.

Signed-off-by: Archit Taneja <architt@codeaurora.org>
drivers/gpu/drm/msm/msm_drv.c