ARM: shmobile: Move SYSC base variable to inside ifdefs
authorMagnus Damm <damm@opensource.se>
Mon, 24 Feb 2014 05:52:12 +0000 (14:52 +0900)
committerSimon Horman <horms+renesas@verge.net.au>
Wed, 26 Feb 2014 05:53:35 +0000 (14:53 +0900)
Move the rcar_sysc_base variable to inside #ifdefs to avoid
triggering build warnings in case PM or SMP is not selected.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/pm-rcar.c

index 17225db095586a9aef240a64a4627209e78cef4e..1f465a12d1b1932422935e35a1c8f3f7bb2a4b1b 100644 (file)
@@ -15,8 +15,6 @@
 #include <asm/io.h>
 #include <mach/pm-rcar.h>
 
-static void __iomem *rcar_sysc_base;
-
 /* SYSC */
 #define SYSCSR 0x00
 #define SYSCISR 0x04
@@ -35,6 +33,7 @@ static void __iomem *rcar_sysc_base;
 
 #if defined(CONFIG_PM) || defined(CONFIG_SMP)
 
+static void __iomem *rcar_sysc_base;
 static DEFINE_SPINLOCK(rcar_sysc_lock); /* SMP CPUs + I/O devices */
 
 static int rcar_sysc_pwr_on_off(struct rcar_sysc_ch *sysc_ch,