summaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2012-09-07 10:31:49 +0300
committerLen Brown <len.brown@intel.com>2012-09-21 13:42:26 -0400
commita509d228b690b2850fa70bef8de042d42ffe5acd (patch)
tree13d8350e8341849c0cdf3f5a0abf629d3ff79fe0 /drivers/platform/x86
parent01d1775301f950ea463e2184b67b6bc9b68f5bae (diff)
downloadtalos-op-linux-a509d228b690b2850fa70bef8de042d42ffe5acd.tar.gz
talos-op-linux-a509d228b690b2850fa70bef8de042d42ffe5acd.zip
xo15-ebook: convert to module_acpi_driver()
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/platform/x86')
-rw-r--r--drivers/platform/x86/xo15-ebook.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/platform/x86/xo15-ebook.c b/drivers/platform/x86/xo15-ebook.c
index 38ba39d7ca7d..16d340c3b852 100644
--- a/drivers/platform/x86/xo15-ebook.c
+++ b/drivers/platform/x86/xo15-ebook.c
@@ -170,16 +170,4 @@ static struct acpi_driver xo15_ebook_driver = {
},
.drv.pm = &ebook_switch_pm,
};
-
-static int __init xo15_ebook_init(void)
-{
- return acpi_bus_register_driver(&xo15_ebook_driver);
-}
-
-static void __exit xo15_ebook_exit(void)
-{
- acpi_bus_unregister_driver(&xo15_ebook_driver);
-}
-
-module_init(xo15_ebook_init);
-module_exit(xo15_ebook_exit);
+module_acpi_driver(xo15_ebook_driver);
OpenPOWER on IntegriCloud