ARM: sa1100: include linux/io.h in hackkit leds code
authorArnd Bergmann <[email protected]>
Sat, 4 Aug 2012 04:59:34 +0000 (04:59 +0000)
committerArnd Bergmann <[email protected]>
Thu, 9 Aug 2012 13:16:42 +0000 (15:16 +0200)
The sa1100 definition of the io_p2v macro has changed in v3.6, and this one
file stopped working because of that.

Without this patch, building hackkit_defconfig results in:

arch/arm/mach-sa1100/leds-hackkit.c: In function 'hackkit_leds_event':
arch/arm/mach-sa1100/leds-hackkit.c:39:4: error: implicit declaration of function 'IOMEM' [-Werror=implicit-function-declaration]

Signed-off-by: Arnd Bergmann <[email protected]>
Cc: Russell King <[email protected]>
arch/arm/mach-sa1100/leds-hackkit.c

index 6a2352436e6268989700ab9d9b84761add3b9bc1..f8e47235babeab49c179328d9013d62503286eee 100644 (file)
@@ -10,6 +10,7 @@
  * as cpu led, the green one is used as timer led.
  */
 #include <linux/init.h>
+#include <linux/io.h>
 
 #include <mach/hardware.h>
 #include <asm/leds.h>