]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
watchdog: s5p_wdt: Include missing CPU header
authorSam Protsenko <semen.protsenko@linaro.org>
Fri, 20 Oct 2023 21:46:33 +0000 (16:46 -0500)
committerMinkyu Kang <mk7.kang@samsung.com>
Mon, 13 Nov 2023 07:18:01 +0000 (16:18 +0900)
s5p watchdog driver calls samsung_get_base_watchdog() function, but its
prototype is not included. That might lead to build warnings like this:

    drivers/watchdog/s5p_wdt.c: In function 'wdt_stop':
    drivers/watchdog/s5p_wdt.c:16:26:
        warning: implicit declaration of function
        'samsung_get_base_watchdog' [-Wimplicit-function-declaration]
             16 |   (struct s5p_watchdog *)samsung_get_base_watchdog();
                |                          ^~~~~~~~~~~~~~~~~~~~~~~~~

Include asm/arch/cpu.h to fix that issue.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
drivers/watchdog/s5p_wdt.c

index 5ad7d2609f041610c04d18462e3a2f98ba5681c7..80524a00101b9167be3af6005b92181db83b5807 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <asm/io.h>
+#include <asm/arch/cpu.h>
 #include <asm/arch/watchdog.h>
 
 #define PRESCALER_VAL 255