Skip to contentSkip to conversation

ucb1x00: driver model fixes

PATCH New Pavel Machek 1 participant 1 message Jul 26, 2005 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ucb1x00: driver model fixes

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

drivers/misc/mcp.h renamed from /drivers/misc/mcp.h +1 -1
@@ -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 *);
 };
 
drivers/misc/ucb1x00-ts.c renamed from /drivers/misc/ucb1x00-ts.c +1 -2
@@ -253,8 +253,7 @@
 			timeout = HZ / 100;
 		}
 
-		if (tsk->flags & PF_FREEZE)
-			refrigerator();
+		try_to_freeze();
 
 		schedule_timeout(timeout);
 		if (signal_pending(tsk))
Signature · 1 line
teflon -- maybe it is a trademark, but it should not be.