Commit c4ca5d80 authored by Magnus Damm's avatar Magnus Damm Committed by Simon Horman

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: default avatarMagnus Damm <damm@opensource.se>
Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
parent e7509f6e
...@@ -15,8 +15,6 @@ ...@@ -15,8 +15,6 @@
#include <asm/io.h> #include <asm/io.h>
#include <mach/pm-rcar.h> #include <mach/pm-rcar.h>
static void __iomem *rcar_sysc_base;
/* SYSC */ /* SYSC */
#define SYSCSR 0x00 #define SYSCSR 0x00
#define SYSCISR 0x04 #define SYSCISR 0x04
...@@ -35,6 +33,7 @@ static void __iomem *rcar_sysc_base; ...@@ -35,6 +33,7 @@ static void __iomem *rcar_sysc_base;
#if defined(CONFIG_PM) || defined(CONFIG_SMP) #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 DEFINE_SPINLOCK(rcar_sysc_lock); /* SMP CPUs + I/O devices */
static int rcar_sysc_pwr_on_off(struct rcar_sysc_ch *sysc_ch, static int rcar_sysc_pwr_on_off(struct rcar_sysc_ch *sysc_ch,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment