mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@suse.cz>
To: rpurdie@rpsys.net, lenz@cs.wisc.edu,
	kernel list <linux-kernel@vger.kernel.org>,
	rmk@arm.linux.org.uk
Subject: [patch] ucb1x00: driver model fixes
Date: Tue, 26 Jul 2005 09:18:45 +0200	[thread overview]
Message-ID: <20050726071845.GJ8684@elf.ucw.cz> (raw)

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.

                 reply	other threads:[~2005-07-26  7:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050726071845.GJ8684@elf.ucw.cz \
    --to=pavel@suse.cz \
    --cc=lenz@cs.wisc.edu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rmk@arm.linux.org.uk \
    --cc=rpurdie@rpsys.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®