]> git.baikalelectronics.ru Git - kernel.git/commit
drm/bridge: Move devm_drm_of_get_bridge to bridge/panel.c
authorMaxime Ripard <maxime@cerno.tech>
Fri, 17 Sep 2021 18:09:25 +0000 (20:09 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 22 Sep 2021 08:44:00 +0000 (10:44 +0200)
commitf3bea26693f091ed8c9841224d0eee7b6235a175
tree492bd94d60261d0329372340f66c1910e23fb653
parent45af33862509bf8f99ef26692ced92f7dab2f922
drm/bridge: Move devm_drm_of_get_bridge to bridge/panel.c

By depending on devm_drm_panel_bridge_add(), devm_drm_of_get_bridge()
introduces a circular dependency between the modules drm (where
devm_drm_of_get_bridge() ends up) and drm_kms_helper (where
devm_drm_panel_bridge_add() is).

Fix this by moving devm_drm_of_get_bridge() to bridge/panel.c and thus
drm_kms_helper.

Fixes: 336c3299149d ("drm/bridge: Add a function to abstract away panels")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20210917180925.2602266-1-maxime@cerno.tech
drivers/gpu/drm/bridge/panel.c
drivers/gpu/drm/drm_bridge.c