summaryrefslogtreecommitdiff
path: root/arch/arm/mach-shmobile
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2014-02-24 09:52:12 +0400
committerSimon Horman <horms+renesas@verge.net.au>2014-02-26 09:53:35 +0400
commitc4ca5d80e03559fd95c526ece5ce39fc732a2511 (patch)
tree747ef911f23817fd5866f58c27f9a6b9ba37f91e /arch/arm/mach-shmobile
parente7509f6eca10cff3933f8a71f4ca9d8be8447ec3 (diff)
downloadlinux-c4ca5d80e03559fd95c526ece5ce39fc732a2511.tar.xz
ARM: shmobile: Move SYSC base variable to inside ifdefs
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>
Diffstat (limited to 'arch/arm/mach-shmobile')
-rw-r--r--arch/arm/mach-shmobile/pm-rcar.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-shmobile/pm-rcar.c b/arch/arm/mach-shmobile/pm-rcar.c
index 17225db09558..1f465a12d1b1 100644
--- a/arch/arm/mach-shmobile/pm-rcar.c
+++ b/arch/arm/mach-shmobile/pm-rcar.c
@@ -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,