drm/bridge: Add stubs for devm_drm_of_get_bridge when OF is disabled
authorMaxime Ripard <maxime@cerno.tech>
Tue, 28 Sep 2021 18:13:33 +0000 (20:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Sep 2022 08:30:03 +0000 (10:30 +0200)
commitf8b07c05b69969c41efafda7022d6cb184d61bf9
tree6251365f8f081a5d76cf4f52a9a4990cb2ce9b65
parent3ffb97fce282df03723995f5eed6a559d008078e
drm/bridge: Add stubs for devm_drm_of_get_bridge when OF is disabled

commit 59050d783848d9b62e9d8fb6ce0cd00771c2bf87 upstream.

If CONFIG_OF is disabled, devm_drm_of_get_bridge won't be compiled in
and drivers using that function will fail to build.

Add an inline stub so that we can still build-test those cases.

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Link: https://patchwork.freedesktop.org/patch/msgid/20210928181333.1176840-1-maxime@cerno.tech
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/drm/drm_bridge.h