* [PATCH] ARM: at91: correct __iomem 'qualifier' placement
@ 2019-05-24 6:30 Ahmad Fatoum
2019-05-24 6:33 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2019-05-24 6:30 UTC (permalink / raw)
To: barebox
__iomem applies to the pointee, not to the auto pointer
that points at it. Move the annotation to correct this.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
There were only two instances of this and this is the patch
for the second one.
arch/arm/mach-at91/include/mach/at91sam9_ddrsdr.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-at91/include/mach/at91sam9_ddrsdr.h b/arch/arm/mach-at91/include/mach/at91sam9_ddrsdr.h
index 34b2eed057c0..496cf707014e 100644
--- a/arch/arm/mach-at91/include/mach/at91sam9_ddrsdr.h
+++ b/arch/arm/mach-at91/include/mach/at91sam9_ddrsdr.h
@@ -139,7 +139,7 @@ Banks [not SAM9G45] */
#include <io.h>
#include <mach/hardware.h>
-static inline u32 at91_get_ddram_size(void * __iomem base, bool is_nb)
+static inline u32 at91_get_ddram_size(void __iomem *base, bool is_nb)
{
u32 cr;
u32 mdr;
--
2.20.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-05-24 6:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-24 6:30 [PATCH] ARM: at91: correct __iomem 'qualifier' placement Ahmad Fatoum
2019-05-24 6:33 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox