aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/omapdrm/omap_connector.c
diff options
context:
space:
mode:
authorLaurent Pinchart <[email protected]>2016-12-12 09:28:47 +0000
committerLaurent Pinchart <[email protected]>2016-12-19 09:33:45 +0000
commit2f95bc6d324a93b2411bcc5defe4d4414c45f325 (patch)
tree5352c7a2af0b5a2b276179c2ffee89e19dfe98b4 /drivers/gpu/drm/omapdrm/omap_connector.c
parentdrm: Move vblank cleanup from unregister to release (diff)
downloadkernel-2f95bc6d324a93b2411bcc5defe4d4414c45f325.tar.gz
kernel-2f95bc6d324a93b2411bcc5defe4d4414c45f325.zip
drm: omapdrm: Perform initialization/cleanup at probe/remove time
The drm driver .load() operation is prone to race conditions as it initializes the driver after registering the device nodes. Its usage is deprecated, inline it in the probe function and call drm_dev_alloc() and drm_dev_register() explicitly. For consistency inline the .unload() handler in the remove function as well. Signed-off-by: Laurent Pinchart <[email protected]> Reviewed-by: Tomi Valkeinen <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_connector.c')
-rw-r--r--drivers/gpu/drm/omapdrm/omap_connector.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_connector.c b/drivers/gpu/drm/omapdrm/omap_connector.c
index 691cffebb76e..f90e2d22c5ec 100644
--- a/drivers/gpu/drm/omapdrm/omap_connector.c
+++ b/drivers/gpu/drm/omapdrm/omap_connector.c
@@ -240,8 +240,6 @@ struct drm_connector *omap_connector_init(struct drm_device *dev,
connector->interlace_allowed = 1;
connector->doublescan_allowed = 0;
- drm_connector_register(connector);
-
return connector;
fail: