[PATCH v2 1/8] arm: at91: remove at91_wdt struct in spl

Zixun LI admin at hifiphile.com
Thu Apr 17 11:09:48 CEST 2025


at91_wdt struct is only used by spl, remove this reference to
allow at91_wdt_t removal.

Signed-off-by: Zixun LI <admin at hifiphile.com>
---
 arch/arm/mach-at91/spl.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/arch/arm/mach-at91/spl.c b/arch/arm/mach-at91/spl.c
index 5feb8f735511a45dd37ee04bb3742f57d8f2e067..a814973242a723c47af210bd76db9210db061063 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
 

-- 
2.49.0



More information about the U-Boot mailing list