From: Wang Jingjin Date: Sat, 16 Jul 2022 02:07:41 +0000 (+0800) Subject: drm/vc4: Add explicit declaration of 'drmm_of_get_bridge' X-Git-Tag: v6.6.17~3937^2~23^2~1916 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ac991b874b098ecde2c5eb81da48d52b6b22851b;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Maxime Ripard Link: https://patchwork.freedesktop.org/patch/msgid/20220716020741.4124893-1-wangjingjin1@huawei.com --- diff --git a/include/drm/drm_bridge.h b/include/drm/drm_bridge.h index dba5d81..6b65b0d 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