diff options
author | Zixun LI <admin@hifiphile.com> | 2025-04-28 11:16:23 +0200 |
---|---|---|
committer | Eugen Hristev <eugen.hristev@linaro.org> | 2025-06-19 13:56:13 +0300 |
commit | c7e4262580c5ce76aa8669b3fe336c29b563dca2 (patch) | |
tree | 5b3e96f51236ae0379f920da3f295aa5b83a7596 | |
parent | ce2a7fcbd565d55b1d3fdc0e68edd50a21eca7d4 (diff) |
arm: at91: wdt: Remove at91_wdt struct
at91_wdt struct is only used by spl, remove this reference and the struct
itself.
Signed-off-by: Zixun LI <admin@hifiphile.com>
Reviewed-by: Stefan Roese <sr@denx.de>
-rw-r--r-- | arch/arm/mach-at91/include/mach/at91_wdt.h | 6 | ||||
-rw-r--r-- | arch/arm/mach-at91/spl.c | 4 |
2 files changed, 1 insertions, 9 deletions
diff --git a/arch/arm/mach-at91/include/mach/at91_wdt.h b/arch/arm/mach-at91/include/mach/at91_wdt.h index 25d95fab1f8..5ba9dffd8a9 100644 --- a/arch/arm/mach-at91/include/mach/at91_wdt.h +++ b/arch/arm/mach-at91/include/mach/at91_wdt.h @@ -19,12 +19,6 @@ #else -typedef struct at91_wdt { - u32 cr; - u32 mr; - u32 sr; -} at91_wdt_t; - struct at91_wdt_priv { void __iomem *regs; u32 regval; diff --git a/arch/arm/mach-at91/spl.c b/arch/arm/mach-at91/spl.c index 5feb8f73551..a814973242a 100644 --- a/arch/arm/mach-at91/spl.c +++ b/arch/arm/mach-at91/spl.c @@ -14,9 +14,7 @@ #if !defined(CONFIG_WDT_AT91) void at91_disable_wdt(void) { - struct at91_wdt *wdt = (struct at91_wdt *)ATMEL_BASE_WDT; - - writel(AT91_WDT_MR_WDDIS, &wdt->mr); + writel(AT91_WDT_MR_WDDIS, ATMEL_BASE_WDT + AT91_WDT_MR); } #endif |