]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:24:31 +0000 (14:24 +0200)
commitb4c0904316d02356cb1692ae95e0efb9cb2b5cbb
tree5e0ad38ecba5207aa799776f2fae096ce52764a1
parent1630d579c1a20418c5d14cbf69d1dfb32b52ba8a
drm/bridge: Move devm_drm_of_get_bridge to bridge/panel.c

commit f3bea26693f091ed8c9841224d0eee7b6235a175 upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/bridge/panel.c
drivers/gpu/drm/drm_bridge.c