diff options
Diffstat (limited to 'drivers/acpi/toshiba_acpi.c')
-rw-r--r-- | drivers/acpi/toshiba_acpi.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/acpi/toshiba_acpi.c b/drivers/acpi/toshiba_acpi.c index d9b651ffcdc0..faf8a5232d8e 100644 --- a/drivers/acpi/toshiba_acpi.c +++ b/drivers/acpi/toshiba_acpi.c | |||
@@ -125,7 +125,7 @@ static int write_acpi_int(const char *methodName, int val) | |||
125 | union acpi_object in_objs[1]; | 125 | union acpi_object in_objs[1]; |
126 | acpi_status status; | 126 | acpi_status status; |
127 | 127 | ||
128 | params.count = sizeof(in_objs) / sizeof(in_objs[0]); | 128 | params.count = ARRAY_SIZE(in_objs); |
129 | params.pointer = in_objs; | 129 | params.pointer = in_objs; |
130 | in_objs[0].type = ACPI_TYPE_INTEGER; | 130 | in_objs[0].type = ACPI_TYPE_INTEGER; |
131 | in_objs[0].integer.value = val; | 131 | in_objs[0].integer.value = val; |
@@ -561,10 +561,6 @@ static int __init toshiba_acpi_init(void) | |||
561 | if (acpi_disabled) | 561 | if (acpi_disabled) |
562 | return -ENODEV; | 562 | return -ENODEV; |
563 | 563 | ||
564 | if (!acpi_specific_hotkey_enabled) { | ||
565 | printk(MY_INFO "Using generic hotkey driver\n"); | ||
566 | return -ENODEV; | ||
567 | } | ||
568 | /* simple device detection: look for HCI method */ | 564 | /* simple device detection: look for HCI method */ |
569 | if (is_valid_acpi_path(METHOD_HCI_1)) | 565 | if (is_valid_acpi_path(METHOD_HCI_1)) |
570 | method_hci = METHOD_HCI_1; | 566 | method_hci = METHOD_HCI_1; |