From: Mika Westerberg <mika.westerberg@linux.intel.com>
To: lenb@kernel.org
Cc: rui.zhang@intel.com, khali@linux-fr.org, ben-linux@fluff.org,
w.sang@pengutronix.de, dmitry.torokhov@gmail.com,
eric.piel@tremplin-utc.net, mjg@redhat.com,
ike.pan@canonical.com, herton@canonical.com,
linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org,
Mika Westerberg <mika.westerberg@linux.intel.com>
Subject: [PATCH RESEND 07/12] Input: atlas_btns - convert to module_acpi_driver()
Date: Fri, 7 Sep 2012 10:31:44 +0300 [thread overview]
Message-ID: <1347003109-26887-8-git-send-email-mika.westerberg@linux.intel.com> (raw)
In-Reply-To: <1347003109-26887-1-git-send-email-mika.westerberg@linux.intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
---
drivers/input/misc/atlas_btns.c | 17 +----------------
1 file changed, 1 insertion(+), 16 deletions(-)
diff --git a/drivers/input/misc/atlas_btns.c b/drivers/input/misc/atlas_btns.c
index 601f737..26f1313 100644
--- a/drivers/input/misc/atlas_btns.c
+++ b/drivers/input/misc/atlas_btns.c
@@ -151,22 +151,7 @@ static struct acpi_driver atlas_acpi_driver = {
.remove = atlas_acpi_button_remove,
},
};
-
-static int __init atlas_acpi_init(void)
-{
- if (acpi_disabled)
- return -ENODEV;
-
- return acpi_bus_register_driver(&atlas_acpi_driver);
-}
-
-static void __exit atlas_acpi_exit(void)
-{
- acpi_bus_unregister_driver(&atlas_acpi_driver);
-}
-
-module_init(atlas_acpi_init);
-module_exit(atlas_acpi_exit);
+module_acpi_driver(atlas_acpi_driver);
MODULE_AUTHOR("Jaya Kumar");
MODULE_LICENSE("GPL");
--
1.7.10.4
next prev parent reply other threads:[~2012-09-07 7:31 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-07 7:31 [PATCH RESEND 00/12] ACPI: add module_acpi_driver() and convert drivers to it Mika Westerberg
2012-09-07 7:31 ` [PATCH RESEND 01/12] ACPI: introduce module_acpi_driver() helper macro Mika Westerberg
2012-09-07 7:31 ` [PATCH RESEND 02/12] ACPI/button: convert to module_acpi_driver() Mika Westerberg
2012-09-07 7:31 ` [PATCH RESEND 03/12] ACPI/fan: " Mika Westerberg
2012-09-07 7:31 ` [PATCH RESEND 04/12] ACPI/hed: " Mika Westerberg
2012-09-07 7:31 ` [PATCH RESEND 05/12] ACPI/sbshc: " Mika Westerberg
2012-09-07 7:31 ` [PATCH RESEND 06/12] i2c-scmi: " Mika Westerberg
2012-09-07 7:31 ` Mika Westerberg [this message]
2012-09-07 7:31 ` [PATCH RESEND 08/12] hp_accel: " Mika Westerberg
2012-09-07 7:31 ` Mika Westerberg
2012-09-07 7:31 ` [PATCH RESEND 09/12] ideapad: " Mika Westerberg
2012-09-07 7:31 ` [PATCH RESEND 10/12] topstar-laptop: " Mika Westerberg
2012-09-07 7:31 ` [PATCH RESEND 11/12] toshiba_bluetooth: " Mika Westerberg
2012-09-07 7:31 ` [PATCH RESEND 12/12] xo15-ebook: " Mika Westerberg
2012-09-21 17:44 ` [PATCH RESEND 00/12] ACPI: add module_acpi_driver() and convert drivers to it Len Brown
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=1347003109-26887-8-git-send-email-mika.westerberg@linux.intel.com \
--to=mika.westerberg@linux.intel.com \
--cc=ben-linux@fluff.org \
--cc=dmitry.torokhov@gmail.com \
--cc=eric.piel@tremplin-utc.net \
--cc=herton@canonical.com \
--cc=ike.pan@canonical.com \
--cc=khali@linux-fr.org \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mjg@redhat.com \
--cc=rui.zhang@intel.com \
--cc=w.sang@pengutronix.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.