aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2012-09-07 03:31:45 -0400
committerLen Brown <len.brown@intel.com>2012-09-21 13:40:45 -0400
commit46f6471c2c5ed68694df8f453794d5de664e70af (patch)
tree9ebeee6713545ba13cf9a0f0d121a0c222bd3126 /drivers/platform
parentf06efccf4d4162db957983bc8a66073ec4735a38 (diff)
hp_accel: convert to module_acpi_driver()
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Reviewed-by: Éric Piel <eric.piel@tremplin-utc.net> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/hp_accel.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/drivers/platform/x86/hp_accel.c b/drivers/platform/x86/hp_accel.c
index 6b9af989632b..18d74f29dcb2 100644
--- a/drivers/platform/x86/hp_accel.c
+++ b/drivers/platform/x86/hp_accel.c
@@ -382,31 +382,8 @@ static struct acpi_driver lis3lv02d_driver = {
382 }, 382 },
383 .drv.pm = HP_ACCEL_PM, 383 .drv.pm = HP_ACCEL_PM,
384}; 384};
385 385module_acpi_driver(lis3lv02d_driver);
386static int __init lis3lv02d_init_module(void)
387{
388 int ret;
389
390 if (acpi_disabled)
391 return -ENODEV;
392
393 ret = acpi_bus_register_driver(&lis3lv02d_driver);
394 if (ret < 0)
395 return ret;
396
397 pr_info("driver loaded\n");
398
399 return 0;
400}
401
402static void __exit lis3lv02d_exit_module(void)
403{
404 acpi_bus_unregister_driver(&lis3lv02d_driver);
405}
406 386
407MODULE_DESCRIPTION("Glue between LIS3LV02Dx and HP ACPI BIOS and support for disk protection LED."); 387MODULE_DESCRIPTION("Glue between LIS3LV02Dx and HP ACPI BIOS and support for disk protection LED.");
408MODULE_AUTHOR("Yan Burman, Eric Piel, Pavel Machek"); 388MODULE_AUTHOR("Yan Burman, Eric Piel, Pavel Machek");
409MODULE_LICENSE("GPL"); 389MODULE_LICENSE("GPL");
410
411module_init(lis3lv02d_init_module);
412module_exit(lis3lv02d_exit_module);