aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>2017-02-01 17:55:10 -0500
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2017-03-31 14:36:09 -0400
commite56d75a9cf1273222ab48069175b2242a205a107 (patch)
treec2ef8647a6cf13f524e7c8ca22da3360d886d23e
parent1346919285933b881e169ede93e67abd226676aa (diff)
ARM: at91: pm: Remove at91_pm_set_standby
Merge at91_pm_set_standby() in at91_dt_ramc as this is the only callsite. That moves it to the init section. Acked-by: Wenyou Yang <wenyou.yang@atmel.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
-rw-r--r--arch/arm/mach-at91/pm.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c
index dedfe9038336..2cd27c830ab6 100644
--- a/arch/arm/mach-at91/pm.c
+++ b/arch/arm/mach-at91/pm.c
@@ -205,12 +205,6 @@ static struct platform_device at91_cpuidle_device = {
205 .name = "cpuidle-at91", 205 .name = "cpuidle-at91",
206}; 206};
207 207
208static void at91_pm_set_standby(void (*at91_standby)(void))
209{
210 if (at91_standby)
211 at91_cpuidle_device.dev.platform_data = at91_standby;
212}
213
214/* 208/*
215 * The AT91RM9200 goes into self-refresh mode with this command, and will 209 * The AT91RM9200 goes into self-refresh mode with this command, and will
216 * terminate self-refresh automatically on the next SDRAM access. 210 * terminate self-refresh automatically on the next SDRAM access.
@@ -354,7 +348,7 @@ static __init void at91_dt_ramc(void)
354 struct device_node *np; 348 struct device_node *np;
355 const struct of_device_id *of_id; 349 const struct of_device_id *of_id;
356 int idx = 0; 350 int idx = 0;
357 const void *standby = NULL; 351 void *standby = NULL;
358 const struct ramc_info *ramc; 352 const struct ramc_info *ramc;
359 353
360 for_each_matching_node_and_match(np, ramc_ids, &of_id) { 354 for_each_matching_node_and_match(np, ramc_ids, &of_id) {
@@ -378,7 +372,7 @@ static __init void at91_dt_ramc(void)
378 return; 372 return;
379 } 373 }
380 374
381 at91_pm_set_standby(standby); 375 at91_cpuidle_device.dev.platform_data = standby;
382} 376}
383 377
384static void at91rm9200_idle(void) 378static void at91rm9200_idle(void)