]> 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)
commitf207ac644428d777ed12a7a9f9cc06df87088f52
tree7c506f5fa3771649d8c4918d632f763104c721ef
parent17a6d9e65a726680ca986e9d425373c04d438c93
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