diff options
author | Wenyou Yang <wenyou.yang@atmel.com> | 2015-03-09 11:51:49 +0800 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2015-03-13 13:34:55 +0100 |
commit | e32d995cf9db8dbf48d0ae25794b1b7b3872857d (patch) | |
tree | 1996a79c93760e271cd00099d96e763951d58d93 /arch/arm/mach-at91 | |
parent | 5726a8b9686348e8d203f1bbf9d5fc1bb5899518 (diff) | |
download | linux-e32d995cf9db8dbf48d0ae25794b1b7b3872857d.tar.bz2 |
ARM: at91/pm: remove unused void (*at91_pm_standby)(void)
Because the standby mode use the same sram function as the suspend to memory
mode, void (*at91_pm_standby)(void) doesn't need, remove it.
Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
Tested-by: Sylvain Rochet <sylvain.rochet@finsecur.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'arch/arm/mach-at91')
-rw-r--r-- | arch/arm/mach-at91/pm.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c index a008e9cb88ef..9fb868d2b9da 100644 --- a/arch/arm/mach-at91/pm.c +++ b/arch/arm/mach-at91/pm.c @@ -42,7 +42,6 @@ static struct { int memctrl; } at91_pm_data; -static void (*at91_pm_standby)(void); void __iomem *at91_ramc_base[2]; static int at91_pm_valid_state(suspend_state_t state) @@ -207,10 +206,8 @@ static struct platform_device at91_cpuidle_device = { static void at91_pm_set_standby(void (*at91_standby)(void)) { - if (at91_standby) { + if (at91_standby) at91_cpuidle_device.dev.platform_data = at91_standby; - at91_pm_standby = at91_standby; - } } static const struct of_device_id ramc_ids[] __initconst = { |