diff options
Diffstat (limited to 'arch/arm/mach-at91/pm.c')
-rw-r--r-- | arch/arm/mach-at91/pm.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c index a42360f69127..9b15169a1c62 100644 --- a/arch/arm/mach-at91/pm.c +++ b/arch/arm/mach-at91/pm.c | |||
@@ -31,7 +31,6 @@ | |||
31 | 31 | ||
32 | #include "generic.h" | 32 | #include "generic.h" |
33 | #include "pm.h" | 33 | #include "pm.h" |
34 | #include "gpio.h" | ||
35 | 34 | ||
36 | static void (*at91_pm_standby)(void); | 35 | static void (*at91_pm_standby)(void); |
37 | 36 | ||
@@ -130,10 +129,7 @@ extern u32 at91_slow_clock_sz; | |||
130 | 129 | ||
131 | static int at91_pm_enter(suspend_state_t state) | 130 | static int at91_pm_enter(suspend_state_t state) |
132 | { | 131 | { |
133 | if (of_have_populated_dt()) | 132 | at91_pinctrl_gpio_suspend(); |
134 | at91_pinctrl_gpio_suspend(); | ||
135 | else | ||
136 | at91_gpio_suspend(); | ||
137 | 133 | ||
138 | switch (state) { | 134 | switch (state) { |
139 | /* | 135 | /* |
@@ -201,10 +197,7 @@ static int at91_pm_enter(suspend_state_t state) | |||
201 | error: | 197 | error: |
202 | target_state = PM_SUSPEND_ON; | 198 | target_state = PM_SUSPEND_ON; |
203 | 199 | ||
204 | if (of_have_populated_dt()) | 200 | at91_pinctrl_gpio_resume(); |
205 | at91_pinctrl_gpio_resume(); | ||
206 | else | ||
207 | at91_gpio_resume(); | ||
208 | return 0; | 201 | return 0; |
209 | } | 202 | } |
210 | 203 | ||