diff options
Diffstat (limited to 'drivers/macintosh')
-rw-r--r-- | drivers/macintosh/via-pmu.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/macintosh/via-pmu.c b/drivers/macintosh/via-pmu.c index aa481a88ccab..6eb93e45fcd3 100644 --- a/drivers/macintosh/via-pmu.c +++ b/drivers/macintosh/via-pmu.c | |||
@@ -55,6 +55,8 @@ | |||
55 | #include <asm/sections.h> | 55 | #include <asm/sections.h> |
56 | #include <asm/irq.h> | 56 | #include <asm/irq.h> |
57 | #include <asm/pmac_feature.h> | 57 | #include <asm/pmac_feature.h> |
58 | #include <asm/pmac_pfunc.h> | ||
59 | #include <asm/pmac_low_i2c.h> | ||
58 | #include <asm/uaccess.h> | 60 | #include <asm/uaccess.h> |
59 | #include <asm/mmu_context.h> | 61 | #include <asm/mmu_context.h> |
60 | #include <asm/cputable.h> | 62 | #include <asm/cputable.h> |
@@ -2105,6 +2107,10 @@ pmac_suspend_devices(void) | |||
2105 | return -EBUSY; | 2107 | return -EBUSY; |
2106 | } | 2108 | } |
2107 | 2109 | ||
2110 | /* Call platform functions marked "on sleep" */ | ||
2111 | pmac_pfunc_i2c_suspend(); | ||
2112 | pmac_pfunc_base_suspend(); | ||
2113 | |||
2108 | /* Stop preemption */ | 2114 | /* Stop preemption */ |
2109 | preempt_disable(); | 2115 | preempt_disable(); |
2110 | 2116 | ||
@@ -2175,6 +2181,10 @@ pmac_wakeup_devices(void) | |||
2175 | mdelay(10); | 2181 | mdelay(10); |
2176 | preempt_enable(); | 2182 | preempt_enable(); |
2177 | 2183 | ||
2184 | /* Call platform functions marked "on wake" */ | ||
2185 | pmac_pfunc_base_resume(); | ||
2186 | pmac_pfunc_i2c_resume(); | ||
2187 | |||
2178 | /* Resume devices */ | 2188 | /* Resume devices */ |
2179 | device_resume(); | 2189 | device_resume(); |
2180 | 2190 | ||