diff options
Diffstat (limited to 'drivers/pci/hotplug/acpiphp_core.c')
-rw-r--r-- | drivers/pci/hotplug/acpiphp_core.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/pci/hotplug/acpiphp_core.c b/drivers/pci/hotplug/acpiphp_core.c index aa41631e9e0..96316b74969 100644 --- a/drivers/pci/hotplug/acpiphp_core.c +++ b/drivers/pci/hotplug/acpiphp_core.c | |||
@@ -47,8 +47,7 @@ | |||
47 | /* name size which is used for entries in pcihpfs */ | 47 | /* name size which is used for entries in pcihpfs */ |
48 | #define SLOT_NAME_SIZE 21 /* {_SUN} */ | 48 | #define SLOT_NAME_SIZE 21 /* {_SUN} */ |
49 | 49 | ||
50 | static bool debug; | 50 | bool acpiphp_debug; |
51 | int acpiphp_debug; | ||
52 | 51 | ||
53 | /* local variables */ | 52 | /* local variables */ |
54 | static int num_slots; | 53 | static int num_slots; |
@@ -62,7 +61,7 @@ MODULE_AUTHOR(DRIVER_AUTHOR); | |||
62 | MODULE_DESCRIPTION(DRIVER_DESC); | 61 | MODULE_DESCRIPTION(DRIVER_DESC); |
63 | MODULE_LICENSE("GPL"); | 62 | MODULE_LICENSE("GPL"); |
64 | MODULE_PARM_DESC(debug, "Debugging mode enabled or not"); | 63 | MODULE_PARM_DESC(debug, "Debugging mode enabled or not"); |
65 | module_param(debug, bool, 0644); | 64 | module_param_named(debug, acpiphp_debug, bool, 0644); |
66 | 65 | ||
67 | /* export the attention callback registration methods */ | 66 | /* export the attention callback registration methods */ |
68 | EXPORT_SYMBOL_GPL(acpiphp_register_attention); | 67 | EXPORT_SYMBOL_GPL(acpiphp_register_attention); |
@@ -379,8 +378,6 @@ static int __init acpiphp_init(void) | |||
379 | if (acpi_pci_disabled) | 378 | if (acpi_pci_disabled) |
380 | return 0; | 379 | return 0; |
381 | 380 | ||
382 | acpiphp_debug = debug; | ||
383 | |||
384 | /* read all the ACPI info from the system */ | 381 | /* read all the ACPI info from the system */ |
385 | return init_acpi(); | 382 | return init_acpi(); |
386 | } | 383 | } |