]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
ARM: shmobile: add new __iomem annotation for new code
authorArnd Bergmann <arnd@arndb.de>
Sun, 23 Sep 2012 22:41:21 +0000 (22:41 +0000)
committerArnd Bergmann <arnd@arndb.de>
Fri, 28 Sep 2012 19:58:16 +0000 (21:58 +0200)
While we fixed up all instances that were already present in v3.6,
this one came in through new code.

Without this patch, building kzm9g_defconfig results in:

arch/arm/mach-shmobile/board-kzm9g.c: In function 'kzm9g_restart':
arch/arm/mach-shmobile/board-kzm9g.c:781:2: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [enabled by default]

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
Cc: Simon Horman <horms@verge.net.au>
arch/arm/mach-shmobile/board-kzm9g.c

index fd21fb6f99538b696fa6d8fe5d3d9c34c3e8afab..5d792e4753064db1a26139b023285e50253ae337 100644 (file)
@@ -765,7 +765,7 @@ static void __init kzm_init(void)
 
 static void kzm9g_restart(char mode, const char *cmd)
 {
-#define RESCNT2 0xe6188020
+#define RESCNT2 IOMEM(0xe6188020)
        /* Do soft power on reset */
        writel((1 << 31), RESCNT2);
 }