lkml.org 
[lkml]   [2005]   [Jul]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] 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.]

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.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-07-26 09:22    [W:0.039 / U:0.628 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site