This fixes u32 vs. pm_message_t confusion and uses cleaner
try_to_freeze() [fixing compilation as a side-effect on newer
kernels.]

Signed-off-by: Pavel Machek <[EMAIL PROTECTED]>

--- linux-rmk.clean//drivers/misc/mcp.h 2005-07-26 09:15:05.000000000 +0200
+++ linux-rmk/drivers/misc/mcp.h        2005-07-26 08:46:03.000000000 +0200
@@ -45,7 +45,7 @@
        struct device_driver drv;
        int (*probe)(struct mcp *);
        void (*remove)(struct mcp *);
-       int (*suspend)(struct mcp *, u32);
+       int (*suspend)(struct mcp *, pm_message_t);
        int (*resume)(struct mcp *);
 };
 
--- linux-rmk.clean//drivers/misc/ucb1x00-ts.c  2005-07-26 09:15:19.000000000 
+0200
+++ linux-rmk/drivers/misc/ucb1x00-ts.c 2005-07-26 08:46:56.000000000 +0200
@@ -253,8 +253,7 @@
                        timeout = HZ / 100;
                }
 
-               if (tsk->flags & PF_FREEZE)
-                       refrigerator();
+               try_to_freeze();
 
                schedule_timeout(timeout);
                if (signal_pending(tsk))

-- 
teflon -- maybe it is a trademark, but it should not be.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to