diff options
author | Sam Protsenko <semen.protsenko@linaro.org> | 2023-10-20 16:46:33 -0500 |
---|---|---|
committer | Minkyu Kang <mk7.kang@samsung.com> | 2023-11-13 16:18:01 +0900 |
commit | 11bd2787deff113634cb9f330d9287e6d3d76e9e (patch) | |
tree | f9cabe4d8299bf2f45fed864e218a01444c36aaa /drivers/watchdog | |
parent | c9ab9f30c8e41426d9d028821895ef3853f683fc (diff) | |
download | u-boot-11bd2787deff113634cb9f330d9287e6d3d76e9e.zip u-boot-11bd2787deff113634cb9f330d9287e6d3d76e9e.tar.gz u-boot-11bd2787deff113634cb9f330d9287e6d3d76e9e.tar.bz2 |
watchdog: s5p_wdt: Include missing CPU header
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>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r-- | drivers/watchdog/s5p_wdt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/watchdog/s5p_wdt.c b/drivers/watchdog/s5p_wdt.c index 5ad7d26..80524a0 100644 --- a/drivers/watchdog/s5p_wdt.c +++ b/drivers/watchdog/s5p_wdt.c @@ -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 |