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)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 30 Sep 2021 13:54:32 +0000 (15:54 +0200)
commit59050d783848d9b62e9d8fb6ce0cd00771c2bf87
tree8d2dde8ea6d4adf4a6296dbb7d0e52ed535bf444
parent49e7f76fc514cecf2cad1303fa74d99be7e5d9a6
drm/bridge: Add stubs for devm_drm_of_get_bridge when OF is disabled

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
include/drm/drm_bridge.h