diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2014-09-03 06:52:28 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-09-08 18:46:12 -0400 |
commit | d40fce7e625dcecb196b1e4dba4dde19fdee919c (patch) | |
tree | 3ee28b5e85ae039a4c28a9dc4ee106c33e6824e0 /arch/arm/mach-s3c64xx | |
parent | 0fcc455252d2ec766deb45bb735e32c7023811fe (diff) |
ARM: s3c64xx: Leave disabling of unused PM domains to genpd
Since genpd at late init, will try to disable unused PM domains we
don't need to do it from the machine specific code as well.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'arch/arm/mach-s3c64xx')
-rw-r--r-- | arch/arm/mach-s3c64xx/common.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/common.h | 7 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-anw6410.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-crag6410.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-hmt.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-mini6410.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-ncp.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-real6410.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-smartq5.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-smartq7.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-smdk6400.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-smdk6410.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/pm.c | 7 |
13 files changed, 0 insertions, 29 deletions
diff --git a/arch/arm/mach-s3c64xx/common.c b/arch/arm/mach-s3c64xx/common.c index 5c45aae675b6..16547f2641a3 100644 --- a/arch/arm/mach-s3c64xx/common.c +++ b/arch/arm/mach-s3c64xx/common.c | |||
@@ -440,8 +440,3 @@ void s3c64xx_restart(enum reboot_mode mode, const char *cmd) | |||
440 | /* if all else fails, or mode was for soft, jump to 0 */ | 440 | /* if all else fails, or mode was for soft, jump to 0 */ |
441 | soft_restart(0); | 441 | soft_restart(0); |
442 | } | 442 | } |
443 | |||
444 | void __init s3c64xx_init_late(void) | ||
445 | { | ||
446 | s3c64xx_pm_late_initcall(); | ||
447 | } | ||
diff --git a/arch/arm/mach-s3c64xx/common.h b/arch/arm/mach-s3c64xx/common.h index 7043e7a3a67e..9eb864412911 100644 --- a/arch/arm/mach-s3c64xx/common.h +++ b/arch/arm/mach-s3c64xx/common.h | |||
@@ -23,7 +23,6 @@ void s3c64xx_init_irq(u32 vic0, u32 vic1); | |||
23 | void s3c64xx_init_io(struct map_desc *mach_desc, int size); | 23 | void s3c64xx_init_io(struct map_desc *mach_desc, int size); |
24 | 24 | ||
25 | void s3c64xx_restart(enum reboot_mode mode, const char *cmd); | 25 | void s3c64xx_restart(enum reboot_mode mode, const char *cmd); |
26 | void s3c64xx_init_late(void); | ||
27 | 26 | ||
28 | void s3c64xx_clk_init(struct device_node *np, unsigned long xtal_f, | 27 | void s3c64xx_clk_init(struct device_node *np, unsigned long xtal_f, |
29 | unsigned long xusbxti_f, bool is_s3c6400, void __iomem *reg_base); | 28 | unsigned long xusbxti_f, bool is_s3c6400, void __iomem *reg_base); |
@@ -52,12 +51,6 @@ extern void s3c6410_map_io(void); | |||
52 | #define s3c6410_init NULL | 51 | #define s3c6410_init NULL |
53 | #endif | 52 | #endif |
54 | 53 | ||
55 | #ifdef CONFIG_PM | ||
56 | int __init s3c64xx_pm_late_initcall(void); | ||
57 | #else | ||
58 | static inline int s3c64xx_pm_late_initcall(void) { return 0; } | ||
59 | #endif | ||
60 | |||
61 | #ifdef CONFIG_S3C64XX_PL080 | 54 | #ifdef CONFIG_S3C64XX_PL080 |
62 | extern struct pl08x_platform_data s3c64xx_dma0_plat_data; | 55 | extern struct pl08x_platform_data s3c64xx_dma0_plat_data; |
63 | extern struct pl08x_platform_data s3c64xx_dma1_plat_data; | 56 | extern struct pl08x_platform_data s3c64xx_dma1_plat_data; |
diff --git a/arch/arm/mach-s3c64xx/mach-anw6410.c b/arch/arm/mach-s3c64xx/mach-anw6410.c index 60576dfbea8d..6224c67f5061 100644 --- a/arch/arm/mach-s3c64xx/mach-anw6410.c +++ b/arch/arm/mach-s3c64xx/mach-anw6410.c | |||
@@ -233,7 +233,6 @@ MACHINE_START(ANW6410, "A&W6410") | |||
233 | .init_irq = s3c6410_init_irq, | 233 | .init_irq = s3c6410_init_irq, |
234 | .map_io = anw6410_map_io, | 234 | .map_io = anw6410_map_io, |
235 | .init_machine = anw6410_machine_init, | 235 | .init_machine = anw6410_machine_init, |
236 | .init_late = s3c64xx_init_late, | ||
237 | .init_time = samsung_timer_init, | 236 | .init_time = samsung_timer_init, |
238 | .restart = s3c64xx_restart, | 237 | .restart = s3c64xx_restart, |
239 | MACHINE_END | 238 | MACHINE_END |
diff --git a/arch/arm/mach-s3c64xx/mach-crag6410.c b/arch/arm/mach-s3c64xx/mach-crag6410.c index fe116334afda..10b913baab28 100644 --- a/arch/arm/mach-s3c64xx/mach-crag6410.c +++ b/arch/arm/mach-s3c64xx/mach-crag6410.c | |||
@@ -857,7 +857,6 @@ MACHINE_START(WLF_CRAGG_6410, "Wolfson Cragganmore 6410") | |||
857 | .init_irq = s3c6410_init_irq, | 857 | .init_irq = s3c6410_init_irq, |
858 | .map_io = crag6410_map_io, | 858 | .map_io = crag6410_map_io, |
859 | .init_machine = crag6410_machine_init, | 859 | .init_machine = crag6410_machine_init, |
860 | .init_late = s3c64xx_init_late, | ||
861 | .init_time = samsung_timer_init, | 860 | .init_time = samsung_timer_init, |
862 | .restart = s3c64xx_restart, | 861 | .restart = s3c64xx_restart, |
863 | MACHINE_END | 862 | MACHINE_END |
diff --git a/arch/arm/mach-s3c64xx/mach-hmt.c b/arch/arm/mach-s3c64xx/mach-hmt.c index 19e8feb908fd..e4b087c58ee6 100644 --- a/arch/arm/mach-s3c64xx/mach-hmt.c +++ b/arch/arm/mach-s3c64xx/mach-hmt.c | |||
@@ -277,7 +277,6 @@ MACHINE_START(HMT, "Airgoo-HMT") | |||
277 | .init_irq = s3c6410_init_irq, | 277 | .init_irq = s3c6410_init_irq, |
278 | .map_io = hmt_map_io, | 278 | .map_io = hmt_map_io, |
279 | .init_machine = hmt_machine_init, | 279 | .init_machine = hmt_machine_init, |
280 | .init_late = s3c64xx_init_late, | ||
281 | .init_time = samsung_timer_init, | 280 | .init_time = samsung_timer_init, |
282 | .restart = s3c64xx_restart, | 281 | .restart = s3c64xx_restart, |
283 | MACHINE_END | 282 | MACHINE_END |
diff --git a/arch/arm/mach-s3c64xx/mach-mini6410.c b/arch/arm/mach-s3c64xx/mach-mini6410.c index 9cbc07602ef3..ab61af50bfb9 100644 --- a/arch/arm/mach-s3c64xx/mach-mini6410.c +++ b/arch/arm/mach-s3c64xx/mach-mini6410.c | |||
@@ -366,7 +366,6 @@ MACHINE_START(MINI6410, "MINI6410") | |||
366 | .init_irq = s3c6410_init_irq, | 366 | .init_irq = s3c6410_init_irq, |
367 | .map_io = mini6410_map_io, | 367 | .map_io = mini6410_map_io, |
368 | .init_machine = mini6410_machine_init, | 368 | .init_machine = mini6410_machine_init, |
369 | .init_late = s3c64xx_init_late, | ||
370 | .init_time = samsung_timer_init, | 369 | .init_time = samsung_timer_init, |
371 | .restart = s3c64xx_restart, | 370 | .restart = s3c64xx_restart, |
372 | MACHINE_END | 371 | MACHINE_END |
diff --git a/arch/arm/mach-s3c64xx/mach-ncp.c b/arch/arm/mach-s3c64xx/mach-ncp.c index 4bae7dc49eea..80cb1446f69f 100644 --- a/arch/arm/mach-s3c64xx/mach-ncp.c +++ b/arch/arm/mach-s3c64xx/mach-ncp.c | |||
@@ -103,7 +103,6 @@ MACHINE_START(NCP, "NCP") | |||
103 | .init_irq = s3c6410_init_irq, | 103 | .init_irq = s3c6410_init_irq, |
104 | .map_io = ncp_map_io, | 104 | .map_io = ncp_map_io, |
105 | .init_machine = ncp_machine_init, | 105 | .init_machine = ncp_machine_init, |
106 | .init_late = s3c64xx_init_late, | ||
107 | .init_time = samsung_timer_init, | 106 | .init_time = samsung_timer_init, |
108 | .restart = s3c64xx_restart, | 107 | .restart = s3c64xx_restart, |
109 | MACHINE_END | 108 | MACHINE_END |
diff --git a/arch/arm/mach-s3c64xx/mach-real6410.c b/arch/arm/mach-s3c64xx/mach-real6410.c index fbad2af1ef16..85fa9598b980 100644 --- a/arch/arm/mach-s3c64xx/mach-real6410.c +++ b/arch/arm/mach-s3c64xx/mach-real6410.c | |||
@@ -335,7 +335,6 @@ MACHINE_START(REAL6410, "REAL6410") | |||
335 | .init_irq = s3c6410_init_irq, | 335 | .init_irq = s3c6410_init_irq, |
336 | .map_io = real6410_map_io, | 336 | .map_io = real6410_map_io, |
337 | .init_machine = real6410_machine_init, | 337 | .init_machine = real6410_machine_init, |
338 | .init_late = s3c64xx_init_late, | ||
339 | .init_time = samsung_timer_init, | 338 | .init_time = samsung_timer_init, |
340 | .restart = s3c64xx_restart, | 339 | .restart = s3c64xx_restart, |
341 | MACHINE_END | 340 | MACHINE_END |
diff --git a/arch/arm/mach-s3c64xx/mach-smartq5.c b/arch/arm/mach-s3c64xx/mach-smartq5.c index dec4c08e834f..33224ab36fac 100644 --- a/arch/arm/mach-s3c64xx/mach-smartq5.c +++ b/arch/arm/mach-s3c64xx/mach-smartq5.c | |||
@@ -156,7 +156,6 @@ MACHINE_START(SMARTQ5, "SmartQ 5") | |||
156 | .init_irq = s3c6410_init_irq, | 156 | .init_irq = s3c6410_init_irq, |
157 | .map_io = smartq_map_io, | 157 | .map_io = smartq_map_io, |
158 | .init_machine = smartq5_machine_init, | 158 | .init_machine = smartq5_machine_init, |
159 | .init_late = s3c64xx_init_late, | ||
160 | .init_time = samsung_timer_init, | 159 | .init_time = samsung_timer_init, |
161 | .restart = s3c64xx_restart, | 160 | .restart = s3c64xx_restart, |
162 | MACHINE_END | 161 | MACHINE_END |
diff --git a/arch/arm/mach-s3c64xx/mach-smartq7.c b/arch/arm/mach-s3c64xx/mach-smartq7.c index 27b322069c7d..fc7fece22fb0 100644 --- a/arch/arm/mach-s3c64xx/mach-smartq7.c +++ b/arch/arm/mach-s3c64xx/mach-smartq7.c | |||
@@ -172,7 +172,6 @@ MACHINE_START(SMARTQ7, "SmartQ 7") | |||
172 | .init_irq = s3c6410_init_irq, | 172 | .init_irq = s3c6410_init_irq, |
173 | .map_io = smartq_map_io, | 173 | .map_io = smartq_map_io, |
174 | .init_machine = smartq7_machine_init, | 174 | .init_machine = smartq7_machine_init, |
175 | .init_late = s3c64xx_init_late, | ||
176 | .init_time = samsung_timer_init, | 175 | .init_time = samsung_timer_init, |
177 | .restart = s3c64xx_restart, | 176 | .restart = s3c64xx_restart, |
178 | MACHINE_END | 177 | MACHINE_END |
diff --git a/arch/arm/mach-s3c64xx/mach-smdk6400.c b/arch/arm/mach-s3c64xx/mach-smdk6400.c index 910749768340..6f425126a735 100644 --- a/arch/arm/mach-s3c64xx/mach-smdk6400.c +++ b/arch/arm/mach-s3c64xx/mach-smdk6400.c | |||
@@ -92,7 +92,6 @@ MACHINE_START(SMDK6400, "SMDK6400") | |||
92 | .init_irq = s3c6400_init_irq, | 92 | .init_irq = s3c6400_init_irq, |
93 | .map_io = smdk6400_map_io, | 93 | .map_io = smdk6400_map_io, |
94 | .init_machine = smdk6400_machine_init, | 94 | .init_machine = smdk6400_machine_init, |
95 | .init_late = s3c64xx_init_late, | ||
96 | .init_time = samsung_timer_init, | 95 | .init_time = samsung_timer_init, |
97 | .restart = s3c64xx_restart, | 96 | .restart = s3c64xx_restart, |
98 | MACHINE_END | 97 | MACHINE_END |
diff --git a/arch/arm/mach-s3c64xx/mach-smdk6410.c b/arch/arm/mach-s3c64xx/mach-smdk6410.c index 1dc86d76b530..661eb662d051 100644 --- a/arch/arm/mach-s3c64xx/mach-smdk6410.c +++ b/arch/arm/mach-s3c64xx/mach-smdk6410.c | |||
@@ -705,7 +705,6 @@ MACHINE_START(SMDK6410, "SMDK6410") | |||
705 | .init_irq = s3c6410_init_irq, | 705 | .init_irq = s3c6410_init_irq, |
706 | .map_io = smdk6410_map_io, | 706 | .map_io = smdk6410_map_io, |
707 | .init_machine = smdk6410_machine_init, | 707 | .init_machine = smdk6410_machine_init, |
708 | .init_late = s3c64xx_init_late, | ||
709 | .init_time = samsung_timer_init, | 708 | .init_time = samsung_timer_init, |
710 | .restart = s3c64xx_restart, | 709 | .restart = s3c64xx_restart, |
711 | MACHINE_END | 710 | MACHINE_END |
diff --git a/arch/arm/mach-s3c64xx/pm.c b/arch/arm/mach-s3c64xx/pm.c index 6b37694fa335..aaf7bea4032f 100644 --- a/arch/arm/mach-s3c64xx/pm.c +++ b/arch/arm/mach-s3c64xx/pm.c | |||
@@ -347,10 +347,3 @@ static __init int s3c64xx_pm_initcall(void) | |||
347 | return 0; | 347 | return 0; |
348 | } | 348 | } |
349 | arch_initcall(s3c64xx_pm_initcall); | 349 | arch_initcall(s3c64xx_pm_initcall); |
350 | |||
351 | int __init s3c64xx_pm_late_initcall(void) | ||
352 | { | ||
353 | pm_genpd_poweroff_unused(); | ||
354 | |||
355 | return 0; | ||
356 | } | ||