* [PATCH] drm: exynos: dsi: Drop explicit NULL to out_bridge
@ 2022-04-06 8:12 Jagan Teki
0 siblings, 0 replies; only message in thread
From: Jagan Teki @ 2022-04-06 8:12 UTC (permalink / raw)
To: Andrzej Hajda, Neil Armstrong, Robert Foss, Inki Dae, Marek Szyprowski
Cc: linux-amarula, Jagan Teki, dri-devel
This driver has been changed to use the resource managed
devm_drm_of_get_bridge() to get bridge from ->attach(), it's
unnecessary to assign NULL to out_bridge to remove the bridge
from ->detach() as devm_drm_of_get_bridge() is automatically
remove the bridge when @dev is unbound.
Drop explicit NULL assignment to out_bridge.
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
drivers/gpu/drm/exynos/exynos_drm_dsi.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c
index 06130eee8df8..5fe262f31065 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c
@@ -1500,7 +1500,6 @@ static int exynos_dsi_host_detach(struct mipi_dsi_host *host,
if (dsi->out_bridge->funcs->detach)
dsi->out_bridge->funcs->detach(dsi->out_bridge);
- dsi->out_bridge = NULL;
if (drm->mode_config.poll_enabled)
drm_kms_helper_hotplug_event(drm);
--
2.25.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-04-06 8:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-06 8:12 [PATCH] drm: exynos: dsi: Drop explicit NULL to out_bridge Jagan Teki
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.