drm/bridge: lt8912b: Fix bridge_detach
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Fri, 4 Aug 2023 10:48:10 +0000 (13:48 +0300)
committerRobert Foss <rfoss@kernel.org>
Tue, 5 Sep 2023 14:43:11 +0000 (16:43 +0200)
commit941882a0e96d245f38116e940912b404b6a93c6f
treef99ad56efb46f19581a8c87d16d389e98a20b5d7
parentd0375f6858c4ff7244b62b02eb5e93428e1916cd
drm/bridge: lt8912b: Fix bridge_detach

The driver calls lt8912_bridge_detach() from its lt8912_remove()
function. As the DRM core detaches bridges automatically, this leads to
calling lt8912_bridge_detach() twice. The code probably has tried to
manage the double-call with the 'is_attached' variable, but the driver
never sets the variable to false, so its of no help.

Fix the issue by dropping the call to lt8912_bridge_detach() from
lt8912_remove(), as the DRM core will handle the detach call for us,
and also drop the useless is_attached field.

Fixes: 30e2ae943c26 ("drm/bridge: Introduce LT8912B DSI to HDMI bridge")
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: Robert Foss <rfoss@kernel.org>
Signed-off-by: Robert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230804-lt8912b-v1-1-c542692c6a2f@ideasonboard.com
drivers/gpu/drm/bridge/lontium-lt8912b.c