drm/vc4: Add explicit declaration of 'drmm_of_get_bridge'
Subsystems (3)
PATCH 1/1 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);
--- include/drm/drm_bridge.h | 8 ++++++++ 1 file changed, 8 insertions(+)
include/drm/drm_bridge.h +8 -0
@@ -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
--
2.25.1
Maxime Ripard
AppliedRe: (subset) [PATCH -next] drm/vc4: Add explicit declaration of 'drmm_of_get_bridge'
Quoted 6 lines · Wang Jingjin
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);
Applied to drm/drm-misc (drm-misc-next).
Thanks!
Maxime