From: Sascha Hauer <sha@pengutronix.de>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 1/2] ARM: i.MX8MM: fix sparse warnings in early clock code
Date: Mon, 1 Feb 2021 09:45:47 +0100 [thread overview]
Message-ID: <20210201084547.GL19583@pengutronix.de> (raw)
In-Reply-To: <20210129152553.15792-1-a.fatoum@pengutronix.de>
On Fri, Jan 29, 2021 at 04:25:53PM +0100, Ahmad Fatoum wrote:
> Some __iomem markers were being casted away. Fix that.
>
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
> arch/arm/mach-imx/imx8m.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
Applied, thanks
Sascha
>
> diff --git a/arch/arm/mach-imx/imx8m.c b/arch/arm/mach-imx/imx8m.c
> index b9e01a1d1854..350d203539fc 100644
> --- a/arch/arm/mach-imx/imx8m.c
> +++ b/arch/arm/mach-imx/imx8m.c
> @@ -35,14 +35,14 @@
>
> void imx8m_clock_set_target_val(int clock_id, u32 val)
> {
> - void *ccm = IOMEM(MX8M_CCM_BASE_ADDR);
> + void __iomem *ccm = IOMEM(MX8M_CCM_BASE_ADDR);
>
> writel(val, ccm + IMX8M_CCM_TARGET_ROOTn(clock_id));
> }
>
> void imx8m_ccgr_clock_enable(int index)
> {
> - void *ccm = IOMEM(MX8M_CCM_BASE_ADDR);
> + void __iomem *ccm = IOMEM(MX8M_CCM_BASE_ADDR);
>
> writel(IMX8M_CCM_CCGR_SETTINGn_NEEDED(0),
> ccm + IMX8M_CCM_CCGRn_SET(index));
> @@ -50,7 +50,7 @@ void imx8m_ccgr_clock_enable(int index)
>
> void imx8m_ccgr_clock_disable(int index)
> {
> - void *ccm = IOMEM(MX8M_CCM_BASE_ADDR);
> + void __iomem *ccm = IOMEM(MX8M_CCM_BASE_ADDR);
>
> writel(IMX8M_CCM_CCGR_SETTINGn_NEEDED(0),
> ccm + IMX8M_CCM_CCGRn_CLR(index));
> --
> 2.30.0
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
prev parent reply other threads:[~2021-02-01 8:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-29 15:25 Ahmad Fatoum
2021-01-29 15:25 ` [PATCH 2/2] ARM: i.MX8MM: move system counter enabling into imx8mm_cpu_lowlevel_init Ahmad Fatoum
2021-02-01 8:45 ` Sascha Hauer [this message]
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=20210201084547.GL19583@pengutronix.de \
--to=sha@pengutronix.de \
--cc=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/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