Skip to contentSkip to conversation

drm: exynos: dsi: Drop explicit NULL to out_bridge

PATCH New Jagan Teki 1 participant 1 message Apr 6, 2022

Subsystems (3)
lore
Share & tools
lore

Jagan Teki

author
#0 lore raw

PATCH 1/1 drm: exynos: dsi: Drop explicit NULL to out_bridge

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.

---
 drivers/gpu/drm/exynos/exynos_drm_dsi.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/exynos/exynos_drm_dsi.c +0 -1
index 06130eee8df8..5fe262f31065 100644
@@ -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);
Signature · 1 line
2.25.1