diff options
author | Wang Jingjin <wangjingjin1@huawei.com> | 2022-07-16 04:07:41 +0200 |
---|---|---|
committer | Maxime Ripard <maxime@cerno.tech> | 2022-07-21 12:15:56 +0200 |
commit | ac991b874b098ecde2c5eb81da48d52b6b22851b (patch) | |
tree | ea0ef503ad19970ca3c4486e056a49b77bed08a7 /include/drm/drm_bridge.h | |
parent | drm/panel-edp: Add panel entry for B120XAN01.0 (diff) | |
download | linux-ac991b874b098ecde2c5eb81da48d52b6b22851b.tar.xz linux-ac991b874b098ecde2c5eb81da48d52b6b22851b.zip |
drm/vc4: Add explicit declaration of 'drmm_of_get_bridge'
Fix the error of implicit declaration of function 'drmm_of_get_bridge':
drivers/gpu/drm/vc4/vc4_dpi.c:278:11: error: implicit declaration of function ‘drmm_of_get_bridge’; did you mean ‘devm_drm_of_get_bridge’? [-Werror=implicit-function-declaration]
bridge = drmm_of_get_bridge(drm, dev->of_node, 0, 0);
Fixes: 055af0235aef ("drm/vc4: dpi: Switch to drmm_of_get_bridge")
Signed-off-by: Wang Jingjin <wangjingjin1@huawei.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20220716020741.4124893-1-wangjingjin1@huawei.com
Diffstat (limited to 'include/drm/drm_bridge.h')
-rw-r--r-- | include/drm/drm_bridge.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/drm/drm_bridge.h b/include/drm/drm_bridge.h index dba5d81e3b4a..6b65b0dfb4fb 100644 --- a/include/drm/drm_bridge.h +++ b/include/drm/drm_bridge.h @@ -959,6 +959,14 @@ static inline struct drm_bridge *devm_drm_of_get_bridge(struct device *dev, { return ERR_PTR(-ENODEV); } + +static inline struct drm_bridge *drmm_of_get_bridge(struct drm_device *drm, + struct device_node *node, + u32 port, + u32 endpoint) +{ + return ERR_PTR(-ENODEV); +} #endif #endif |