From: Zixun LI Date: Mon, 28 Apr 2025 09:16:23 +0000 (+0200) Subject: arm: at91: wdt: Remove at91_wdt struct X-Git-Tag: v2025.10-rc1~118^2~6^2~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c7e4262580c5ce76aa8669b3fe336c29b563dca2;p=thirdparty%2Fu-boot.git 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 Reviewed-by: Stefan Roese --- 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