From: Philipp Tomsich Date: Tue, 6 Jun 2017 07:15:14 +0000 (+0200) Subject: rockchip: video: rk_hdmi: fix implicit definition warnings X-Git-Tag: v2017.07-rc2~80^2~18 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1208523935613a2574f52028ec0d0e2466dcd067;p=u-boot rockchip: video: rk_hdmi: fix implicit definition warnings When enabling CONFIG_DISPLAY_ROCKCHIP_HDMI, compile-time warning for the following implicitly defined functions are raised due to a missing include directive: drivers/video/rockchip/rk_hdmi.c: In function 'rk_hdmi_probe': drivers/video/rockchip/rk_hdmi.c:150:2: warning: implicit declaration of function 'rk_setreg' [-Wimplicit-function-declaration] rk_setreg(&priv->grf->soc_con6, 1 << 15); ^~~~~~~~~ drivers/video/rockchip/rk_hdmi.c:153:2: warning: implicit declaration of function 'rk_clrsetreg' [-Wimplicit-function-declaration] rk_clrsetreg(&priv->grf->soc_con6, 1 << 4, ^~~~~~~~~~~~ This change fixes this by including in rk_hdmi.c. Signed-off-by: Philipp Tomsich Acked-by: Simon Glass --- diff --git a/drivers/video/rockchip/rk_hdmi.c b/drivers/video/rockchip/rk_hdmi.c index cd695ca508..0479d6eb95 100644 --- a/drivers/video/rockchip/rk_hdmi.c +++ b/drivers/video/rockchip/rk_hdmi.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include