diff options
| -rw-r--r-- | drivers/platform/x86/panasonic-laptop.c | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/drivers/platform/x86/panasonic-laptop.c b/drivers/platform/x86/panasonic-laptop.c index 984253da365d..10d12b221601 100644 --- a/drivers/platform/x86/panasonic-laptop.c +++ b/drivers/platform/x86/panasonic-laptop.c | |||
| @@ -643,23 +643,6 @@ out_hotkey: | |||
| 643 | return result; | 643 | return result; |
| 644 | } | 644 | } |
| 645 | 645 | ||
| 646 | static int __init acpi_pcc_init(void) | ||
| 647 | { | ||
| 648 | int result = 0; | ||
| 649 | |||
| 650 | if (acpi_disabled) | ||
| 651 | return -ENODEV; | ||
| 652 | |||
| 653 | result = acpi_bus_register_driver(&acpi_pcc_driver); | ||
| 654 | if (result < 0) { | ||
| 655 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | ||
| 656 | "Error registering hotkey driver\n")); | ||
| 657 | return -ENODEV; | ||
| 658 | } | ||
| 659 | |||
| 660 | return 0; | ||
| 661 | } | ||
| 662 | |||
| 663 | static int acpi_pcc_hotkey_remove(struct acpi_device *device) | 646 | static int acpi_pcc_hotkey_remove(struct acpi_device *device) |
| 664 | { | 647 | { |
| 665 | struct pcc_acpi *pcc = acpi_driver_data(device); | 648 | struct pcc_acpi *pcc = acpi_driver_data(device); |
| @@ -679,10 +662,4 @@ static int acpi_pcc_hotkey_remove(struct acpi_device *device) | |||
| 679 | return 0; | 662 | return 0; |
| 680 | } | 663 | } |
| 681 | 664 | ||
| 682 | static void __exit acpi_pcc_exit(void) | 665 | module_acpi_driver(acpi_pcc_driver); |
| 683 | { | ||
| 684 | acpi_bus_unregister_driver(&acpi_pcc_driver); | ||
| 685 | } | ||
| 686 | |||
| 687 | module_init(acpi_pcc_init); | ||
| 688 | module_exit(acpi_pcc_exit); | ||
