|
@@ -42,7 +42,6 @@ static struct {
|
|
int memctrl;
|
|
int memctrl;
|
|
} at91_pm_data;
|
|
} at91_pm_data;
|
|
|
|
|
|
-static void (*at91_pm_standby)(void);
|
|
|
|
void __iomem *at91_ramc_base[2];
|
|
void __iomem *at91_ramc_base[2];
|
|
|
|
|
|
static int at91_pm_valid_state(suspend_state_t state)
|
|
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))
|
|
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_cpuidle_device.dev.platform_data = at91_standby;
|
|
- at91_pm_standby = at91_standby;
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
|
|
|
|
static const struct of_device_id ramc_ids[] __initconst = {
|
|
static const struct of_device_id ramc_ids[] __initconst = {
|