summaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2012-09-07 09:31:49 +0200
committerLen Brown <len.brown@intel.com>2012-09-21 19:42:26 +0200
commita509d228b690b2850fa70bef8de042d42ffe5acd (patch)
tree13d8350e8341849c0cdf3f5a0abf629d3ff79fe0 /drivers/platform
parenttoshiba_bluetooth: convert to module_acpi_driver() (diff)
downloadlinux-a509d228b690b2850fa70bef8de042d42ffe5acd.tar.xz
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')
-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);