summaryrefslogtreecommitdiff
path: root/arch/arm/mach-shmobile/pm-rcar.c
diff options
context:
space:
mode:
authorMagnus Damm <damm+renesas@opensource.se>2014-08-25 03:03:52 (GMT)
committerSimon Horman <horms+renesas@verge.net.au>2014-09-02 00:32:05 (GMT)
commit1a950ca536dd5c40167ef58951e738ae430fa96d (patch)
treebd24b81db58bf51baa4c4e64d3915664dea4cfb0 /arch/arm/mach-shmobile/pm-rcar.c
parent0d91843346049d3131c2f75ff21d6b405cb68741 (diff)
downloadlinux-1a950ca536dd5c40167ef58951e738ae430fa96d.tar.xz
ARM: shmobile: Cleanup pm-rcar.o build using Kconfig
Add a CONFIG_PM_RCAR entry and enable it for R-Car Generation 1 or 2 in case CONFIG_PM or CONFIG_SMP is set. Consolidate power management objects and get rid of #ifdefs in the C code. Signed-off-by: Magnus Damm <damm+renesas@opensource.se> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/mach-shmobile/pm-rcar.c')
-rw-r--r--arch/arm/mach-shmobile/pm-rcar.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/arm/mach-shmobile/pm-rcar.c b/arch/arm/mach-shmobile/pm-rcar.c
index 34b8a56..00022ee 100644
--- a/arch/arm/mach-shmobile/pm-rcar.c
+++ b/arch/arm/mach-shmobile/pm-rcar.c
@@ -31,8 +31,6 @@
#define SYSCISR_RETRIES 1000
#define SYSCISR_DELAY_US 1
-#if defined(CONFIG_PM) || defined(CONFIG_SMP)
-
static void __iomem *rcar_sysc_base;
static DEFINE_SPINLOCK(rcar_sysc_lock); /* SMP CPUs + I/O devices */
@@ -137,5 +135,3 @@ void __iomem *rcar_sysc_init(phys_addr_t base)
return rcar_sysc_base;
}
-
-#endif /* CONFIG_PM || CONFIG_SMP */