diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2016-12-12 10:28:47 +0100 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2017-02-17 14:25:59 +0100 |
commit | 896bbc3ef1b065688163ce6c09c31e55fb4cd9f5 (patch) | |
tree | 3304d2c6587ae3d5451f25191ddf7daba3d4f546 /drivers/gpu/drm/exynos/exynos_dp.c | |
parent | drm: shmobile: Perform initialization/cleanup at probe/remove time (diff) | |
download | linux-896bbc3ef1b065688163ce6c09c31e55fb4cd9f5.tar.xz linux-896bbc3ef1b065688163ce6c09c31e55fb4cd9f5.zip |
drm: exynos: 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 <laurent.pinchart@ideasonboard.com>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Acked-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_dp.c')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_dp.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_dp.c b/drivers/gpu/drm/exynos/exynos_dp.c index 1ef0be338b85..b445b50a5dc4 100644 --- a/drivers/gpu/drm/exynos/exynos_dp.c +++ b/drivers/gpu/drm/exynos/exynos_dp.c @@ -101,7 +101,6 @@ static int exynos_dp_bridge_attach(struct analogix_dp_plat_data *plat_data, struct exynos_dp_device *dp = to_dp(plat_data); int ret; - drm_connector_register(connector); dp->connector = connector; /* Pre-empt DP connector creation if there's a bridge */ |