aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);