From: Dmitry Torokhov <dtor_core@ameritech.net>
To: Vojtech Pavlik <vojtech@suse.cz>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH 6/7] Input: i8042 remove reboot notifier
Date: Thu, 21 Oct 2004 02:29:31 -0500 [thread overview]
Message-ID: <200410210229.33358.dtor_core@ameritech.net> (raw)
In-Reply-To: <200410210228.57067.dtor_core@ameritech.net>
===================================================================
ChangeSet@1.1969, 2004-10-20 00:53:53-05:00, dtor_core@ameritech.net
Input: i8042 - get rid of reboot notifier as suspend method
should do the job.
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
i8042.c | 33 +++++----------------------------
1 files changed, 5 insertions(+), 28 deletions(-)
===================================================================
diff -Nru a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c
--- a/drivers/input/serio/i8042.c 2004-10-21 02:14:01 -05:00
+++ b/drivers/input/serio/i8042.c 2004-10-21 02:14:01 -05:00
@@ -16,10 +16,7 @@
#include <linux/interrupt.h>
#include <linux/ioport.h>
#include <linux/config.h>
-#include <linux/reboot.h>
#include <linux/init.h>
-#include <linux/sysdev.h>
-#include <linux/pm.h>
#include <linux/serio.h>
#include <linux/err.h>
@@ -825,27 +822,6 @@
/*
- * We need to reset the 8042 back to original mode on system shutdown,
- * because otherwise BIOSes will be confused.
- */
-
-static int i8042_notify_sys(struct notifier_block *this, unsigned long code,
- void *unused)
-{
- if (code == SYS_DOWN || code == SYS_HALT)
- i8042_controller_cleanup();
- return NOTIFY_DONE;
-}
-
-static struct notifier_block i8042_notifier =
-{
- i8042_notify_sys,
- NULL,
- 0
-};
-
-
-/*
* Here we try to restore the original BIOS settings
*/
@@ -904,6 +880,11 @@
}
+/*
+ * We need to reset the 8042 back to original mode on system shutdown,
+ * because otherwise BIOSes will be confused.
+ */
+
static void i8042_shutdown(struct device *dev)
{
i8042_controller_cleanup();
@@ -1031,16 +1012,12 @@
mod_timer(&i8042_timer, jiffies + I8042_POLL_PERIOD);
- register_reboot_notifier(&i8042_notifier);
-
return 0;
}
void __exit i8042_exit(void)
{
int i;
-
- unregister_reboot_notifier(&i8042_notifier);
i8042_controller_cleanup();
next prev parent reply other threads:[~2004-10-21 7:38 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-21 7:23 [PATCH 0/7] New input patches Dmitry Torokhov
2004-10-21 7:24 ` [PATCH 1/7] Input: whitespace fixes Dmitry Torokhov
2004-10-21 7:25 ` [PATCH 2/7] Input: remove class devices on disconnect Dmitry Torokhov
2004-10-21 7:26 ` [PATCH 3/7] Input: link input_dev and serio (sysfs) Dmitry Torokhov
2004-10-21 7:28 ` [PATCH 4/7] Input: i8042 runtime debug switch Dmitry Torokhov
2004-10-21 7:28 ` [PATCH 5/7] Input: i8042 remove old-style PM handling Dmitry Torokhov
2004-10-21 7:29 ` Dmitry Torokhov [this message]
2004-10-21 7:30 ` [PATCH 7/7] Input: remove pm_dev from core Dmitry Torokhov
2004-10-21 9:13 ` Russell King
2004-10-21 13:25 ` Dmitry Torokhov
2004-10-23 20:49 ` Russell King
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=200410210229.33358.dtor_core@ameritech.net \
--to=dtor_core@ameritech.net \
--cc=linux-kernel@vger.kernel.org \
--cc=vojtech@suse.cz \
/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
Powered by JetHome