]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: Centralize connector registration/unregistration
authorArchit Taneja <architt@codeaurora.org>
Mon, 2 May 2016 05:35:53 +0000 (11:05 +0530)
committerRob Clark <robdclark@gmail.com>
Sun, 8 May 2016 14:22:19 +0000 (10:22 -0400)
commit17a6d9e65a726680ca986e9d425373c04d438c93
tree99039a74397ca004dc2b8cf196735ca389cb7f8d
parenteb55ec74216efc94f6bfae0de1cefb68ba18b221
drm/msm: Centralize connector registration/unregistration

Move the drm_connector registration from the encoder(HDMI/DSI etc) drivers
to the msm platform driver. This will simplify the task of ensuring that
the connectors are registered only after the drm_device itself is
registered.

The connectors' destroy ops are made to use kzalloc instead of
devm_kzalloc to ensure that that the connectors can be successfully
unregistered when the msm driver module is removed. The memory for the
connectors is unallocated when drm_mode_config_cleanup() is called
during either during an error or during driver remove.

Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/dsi/dsi_manager.c
drivers/gpu/drm/msm/edp/edp_connector.c
drivers/gpu/drm/msm/hdmi/hdmi_connector.c
drivers/gpu/drm/msm/mdp/mdp4/mdp4_lvds_connector.c
drivers/gpu/drm/msm/msm_drv.c