mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch] ucb1x00: driver model fixes
@ 2005-07-26  7:18 Pavel Machek
  0 siblings, 0 replies; only message in thread
From: Pavel Machek @ 2005-07-26  7:18 UTC (permalink / raw)
  To: rpurdie, lenz, kernel list, rmk

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 <pavel@suse.cz>

--- 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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-07-26  7:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-26  7:18 [patch] ucb1x00: driver model fixes Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®