Suspend and Resume traces

Sean McNeil sean at mcneil.com
Thu Jun 12 05:37:22 CEST 2008


How about this:

diff --git a/drivers/i2c/chips/pcf50633.c b/drivers/i2c/chips/pcf50633.c
index 90edce0..fa39463 100644
--- a/drivers/i2c/chips/pcf50633.c
+++ b/drivers/i2c/chips/pcf50633.c
@@ -687,7 +687,7 @@ static void pcf50633_work(struct work_struct *work)
 
        /* hey did we just resume? */
 
-       if (pcf->have_been_suspended) {
+       if (pcf->have_been_suspended == 2) {
                pcf->have_been_suspended = 0;
                /*
                 * grab a copy of resume interrupt reasons






More information about the openmoko-kernel mailing list