diff options
Diffstat (limited to 'drivers/acpi/ibm_acpi.c')
-rw-r--r-- | drivers/acpi/ibm_acpi.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/acpi/ibm_acpi.c b/drivers/acpi/ibm_acpi.c index 0fb731a470dc..ad85e10001f4 100644 --- a/drivers/acpi/ibm_acpi.c +++ b/drivers/acpi/ibm_acpi.c | |||
@@ -1025,7 +1025,7 @@ static int setup_notify(struct ibm_struct *ibm) | |||
1025 | return 0; | 1025 | return 0; |
1026 | } | 1026 | } |
1027 | 1027 | ||
1028 | static int device_add(struct acpi_device *device) | 1028 | static int ibmacpi_device_add(struct acpi_device *device) |
1029 | { | 1029 | { |
1030 | return 0; | 1030 | return 0; |
1031 | } | 1031 | } |
@@ -1043,7 +1043,7 @@ static int register_driver(struct ibm_struct *ibm) | |||
1043 | memset(ibm->driver, 0, sizeof(struct acpi_driver)); | 1043 | memset(ibm->driver, 0, sizeof(struct acpi_driver)); |
1044 | sprintf(ibm->driver->name, "%s/%s", IBM_NAME, ibm->name); | 1044 | sprintf(ibm->driver->name, "%s/%s", IBM_NAME, ibm->name); |
1045 | ibm->driver->ids = ibm->hid; | 1045 | ibm->driver->ids = ibm->hid; |
1046 | ibm->driver->ops.add = &device_add; | 1046 | ibm->driver->ops.add = &ibmacpi_device_add; |
1047 | 1047 | ||
1048 | ret = acpi_bus_register_driver(ibm->driver); | 1048 | ret = acpi_bus_register_driver(ibm->driver); |
1049 | if (ret < 0) { | 1049 | if (ret < 0) { |
@@ -1185,6 +1185,10 @@ static int __init acpi_ibm_init(void) | |||
1185 | if (acpi_disabled) | 1185 | if (acpi_disabled) |
1186 | return -ENODEV; | 1186 | return -ENODEV; |
1187 | 1187 | ||
1188 | if (!acpi_specific_hotkey_enabled){ | ||
1189 | printk(IBM_ERR "Using generic hotkey driver\n"); | ||
1190 | return -ENODEV; | ||
1191 | } | ||
1188 | /* these handles are required */ | 1192 | /* these handles are required */ |
1189 | if (IBM_HANDLE_INIT(ec, 1) < 0 || | 1193 | if (IBM_HANDLE_INIT(ec, 1) < 0 || |
1190 | IBM_HANDLE_INIT(hkey, 1) < 0 || | 1194 | IBM_HANDLE_INIT(hkey, 1) < 0 || |