From: Eugen Hristev <eugen.hristev@linaro.org>
To: Zixun LI <admin@hifiphile.com>, Tom Rini <trini@konsulko.com>
Cc: u-boot@lists.denx.de
Subject: Re: [PATCH 1/7] arm: at91: wdt: Remove unused at91_wdt struct
Date: Thu, 10 Apr 2025 13:28:58 +0300 [thread overview]
Message-ID: <d7fc480b-a5cf-4fec-b9be-84c29e4d83ef@linaro.org> (raw)
In-Reply-To: <20250331191520.1805001-2-admin@hifiphile.com>
On 3/31/25 22:15, Zixun LI wrote:
> at91_wdt struct is not used by anyone, let's remove it.
>
> Signed-off-by: Zixun LI <admin@hifiphile.com>
> ---
> arch/arm/mach-at91/include/mach/at91_wdt.h | 6 ------
> 1 file changed, 6 deletions(-)
>
> diff --git a/arch/arm/mach-at91/include/mach/at91_wdt.h b/arch/arm/mach-at91/include/mach/at91_wdt.h
> index 8ef8e007d77..78ad0453fd9 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;
This breaks sama5d2_xplained_mmc_defconfig for example.
In file included from arch/arm/mach-at91/spl.c:8:
arch/arm/mach-at91/spl.c: In function ‘at91_disable_wdt’:
arch/arm/mach-at91/spl.c:19:39: error: invalid use of undefined type
‘struct at91_wdt’
19 | writel(AT91_WDT_MR_WDDIS, &wdt->mr);
| ^~
./arch/arm/include/asm/io.h:31:69: note: in definition of macro
‘__arch_putl’
31 | #define __arch_putl(v,a) (*(volatile unsigned int
*)(a) = (v))
|
^
arch/arm/mach-at91/spl.c:19:9: note: in expansion of macro ‘writel’
19 | writel(AT91_WDT_MR_WDDIS, &wdt->mr);
| ^~~~~~
next prev parent reply other threads:[~2025-04-10 10:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20250331191520.1805001-1-admin@hifiphile.com>
2025-03-31 19:15 ` [PATCH 1/7] arm: at91: wdt: Remove unused at91_wdt struct Zixun LI
2025-04-02 21:00 ` [PATCH 0/7] watchdog: at91sam9_wdt driver enhancement Zixun LI
2025-04-10 10:28 ` Eugen Hristev [this message]
2025-04-10 16:42 ` [PATCH 1/7] arm: at91: wdt: Remove unused at91_wdt struct Zixun LI
2025-03-31 19:15 ` [PATCH 2/7] arm: at91: wdt: Rename regval in priv data to mr Zixun LI
2025-03-31 19:15 ` [PATCH 3/7] watchdog: at91sam9_wdt: Rename priv to wdt Zixun LI
2025-03-31 19:15 ` [PATCH 4/7] arm: at91: wdt: Add SAM9X60 register definition Zixun LI
2025-03-31 19:15 ` [PATCH 5/7] watchdog: at91sam9_wdt: Add SAM9X60 support Zixun LI
2025-03-31 19:15 ` [PATCH 6/7] ARM: dts: sam9x60: Add watchdog DT node Zixun LI
2025-03-31 19:15 ` [PATCH 7/7] ARM: dts: at91: sam9x60-curiosity: Enable watchdog node Zixun LI
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d7fc480b-a5cf-4fec-b9be-84c29e4d83ef@linaro.org \
--to=eugen.hristev@linaro.org \
--cc=admin@hifiphile.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox