__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 <[email protected]>
---
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to