]> err.no Git - linux-2.6/blobdiff - drivers/macintosh/via-pmu.c
[PATCH] 3/5 powerpc: Add platform functions interpreter
[linux-2.6] / drivers / macintosh / via-pmu.c
index aa481a88ccabff64f8c7e4455faaedc38f4cea15..6eb93e45fcd3f624005714b5c27dc7205e703c12 100644 (file)
@@ -55,6 +55,8 @@
 #include <asm/sections.h>
 #include <asm/irq.h>
 #include <asm/pmac_feature.h>
+#include <asm/pmac_pfunc.h>
+#include <asm/pmac_low_i2c.h>
 #include <asm/uaccess.h>
 #include <asm/mmu_context.h>
 #include <asm/cputable.h>
@@ -2105,6 +2107,10 @@ pmac_suspend_devices(void)
                return -EBUSY;
        }
 
+       /* Call platform functions marked "on sleep" */
+       pmac_pfunc_i2c_suspend();
+       pmac_pfunc_base_suspend();
+
        /* Stop preemption */
        preempt_disable();
 
@@ -2175,6 +2181,10 @@ pmac_wakeup_devices(void)
        mdelay(10);
        preempt_enable();
 
+       /* Call platform functions marked "on wake" */
+       pmac_pfunc_base_resume();
+       pmac_pfunc_i2c_resume();
+
        /* Resume devices */
        device_resume();