]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
arm: at91: wdt: Remove at91_wdt struct
authorZixun LI <admin@hifiphile.com>
Mon, 28 Apr 2025 09:16:23 +0000 (11:16 +0200)
committerEugen Hristev <eugen.hristev@linaro.org>
Thu, 19 Jun 2025 10:56:13 +0000 (13:56 +0300)
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>
arch/arm/mach-at91/include/mach/at91_wdt.h
arch/arm/mach-at91/spl.c

index 25d95fab1f8a72bfb80aae3bd2c5a7d568fd9e25..5ba9dffd8a919903fc15bf6f5f5233ea429adb05 100644 (file)
 
 #else
 
-typedef struct at91_wdt {
-       u32     cr;
-       u32     mr;
-       u32     sr;
-} at91_wdt_t;
-
 struct at91_wdt_priv {
        void __iomem *regs;
        u32 regval;
index 5feb8f735511a45dd37ee04bb3742f57d8f2e067..a814973242a723c47af210bd76db9210db061063 100644 (file)
@@ -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