diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2012-09-07 03:31:45 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2012-09-21 13:40:45 -0400 |
commit | 46f6471c2c5ed68694df8f453794d5de664e70af (patch) | |
tree | 9ebeee6713545ba13cf9a0f0d121a0c222bd3126 /drivers/platform | |
parent | f06efccf4d4162db957983bc8a66073ec4735a38 (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.c | 25 |
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 | 385 | module_acpi_driver(lis3lv02d_driver); | |
386 | static 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 | |||
402 | static void __exit lis3lv02d_exit_module(void) | ||
403 | { | ||
404 | acpi_bus_unregister_driver(&lis3lv02d_driver); | ||
405 | } | ||
406 | 386 | ||
407 | MODULE_DESCRIPTION("Glue between LIS3LV02Dx and HP ACPI BIOS and support for disk protection LED."); | 387 | MODULE_DESCRIPTION("Glue between LIS3LV02Dx and HP ACPI BIOS and support for disk protection LED."); |
408 | MODULE_AUTHOR("Yan Burman, Eric Piel, Pavel Machek"); | 388 | MODULE_AUTHOR("Yan Burman, Eric Piel, Pavel Machek"); |
409 | MODULE_LICENSE("GPL"); | 389 | MODULE_LICENSE("GPL"); |
410 | |||
411 | module_init(lis3lv02d_init_module); | ||
412 | module_exit(lis3lv02d_exit_module); | ||