mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] ARM: i.MX8MM: fix sparse warnings in early clock code
@ 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 ` [PATCH 1/2] ARM: i.MX8MM: fix sparse warnings in early clock code Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Ahmad Fatoum @ 2021-01-29 15:25 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

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(-)

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-02-01  8:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-29 15:25 [PATCH 1/2] ARM: i.MX8MM: fix sparse warnings in early clock code 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 ` [PATCH 1/2] ARM: i.MX8MM: fix sparse warnings in early clock code Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox