Commit 1208523935613a2574f52028ec0d0e2466dcd067

Authored by Philipp Tomsich
Committed by Simon Glass
1 parent a6b08c9677

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 <asm/hardware.h> in rk_hdmi.c.

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Acked-by: Simon Glass <sjg@chromium.org>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/video/rockchip/rk_hdmi.c
... ... @@ -14,6 +14,7 @@
14 14 #include <regmap.h>
15 15 #include <syscon.h>
16 16 #include <asm/gpio.h>
  17 +#include <asm/hardware.h>
17 18 #include <asm/io.h>
18 19 #include <asm/arch/clock.h>
19 20 #include <asm/arch/grf_rk3288.h>