diff options
Diffstat (limited to 'drivers/acpi/ec.c')
-rw-r--r-- | drivers/acpi/ec.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 18b3ea9dace2..94cc8ab94006 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c | |||
@@ -279,7 +279,7 @@ int acpi_ec_enter_burst_mode(union acpi_ec *ec) | |||
279 | atomic_set(&ec->intr.leaving_burst, 0); | 279 | atomic_set(&ec->intr.leaving_burst, 0); |
280 | return_VALUE(0); | 280 | return_VALUE(0); |
281 | end: | 281 | end: |
282 | printk(KERN_WARNING PREFIX "Error in acpi_ec_wait\n"); | 282 | ACPI_EXCEPTION ((AE_INFO, status, "EC wait, burst mode"); |
283 | return_VALUE(-1); | 283 | return_VALUE(-1); |
284 | } | 284 | } |
285 | 285 | ||
@@ -300,7 +300,7 @@ int acpi_ec_leave_burst_mode(union acpi_ec *ec) | |||
300 | atomic_set(&ec->intr.leaving_burst, 1); | 300 | atomic_set(&ec->intr.leaving_burst, 1); |
301 | return_VALUE(0); | 301 | return_VALUE(0); |
302 | end: | 302 | end: |
303 | printk(KERN_WARNING PREFIX "leave burst_mode:error\n"); | 303 | ACPI_EXCEPTION((AE_INFO, status, "EC leave burst mode"); |
304 | return_VALUE(-1); | 304 | return_VALUE(-1); |
305 | } | 305 | } |
306 | #endif /* ACPI_FUTURE_USAGE */ | 306 | #endif /* ACPI_FUTURE_USAGE */ |
@@ -963,9 +963,7 @@ static int acpi_ec_add_fs(struct acpi_device *device) | |||
963 | entry = create_proc_entry(ACPI_EC_FILE_INFO, S_IRUGO, | 963 | entry = create_proc_entry(ACPI_EC_FILE_INFO, S_IRUGO, |
964 | acpi_device_dir(device)); | 964 | acpi_device_dir(device)); |
965 | if (!entry) | 965 | if (!entry) |
966 | ACPI_DEBUG_PRINT((ACPI_DB_WARN, | 966 | return_VALUE(-ENODEV); |
967 | "Unable to create '%s' fs entry\n", | ||
968 | ACPI_EC_FILE_INFO)); | ||
969 | else { | 967 | else { |
970 | entry->proc_fops = &acpi_ec_info_ops; | 968 | entry->proc_fops = &acpi_ec_info_ops; |
971 | entry->data = acpi_driver_data(device); | 969 | entry->data = acpi_driver_data(device); |
@@ -1038,8 +1036,7 @@ static int acpi_ec_poll_add(struct acpi_device *device) | |||
1038 | acpi_evaluate_integer(ec->common.handle, "_GPE", NULL, | 1036 | acpi_evaluate_integer(ec->common.handle, "_GPE", NULL, |
1039 | &ec->common.gpe_bit); | 1037 | &ec->common.gpe_bit); |
1040 | if (ACPI_FAILURE(status)) { | 1038 | if (ACPI_FAILURE(status)) { |
1041 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 1039 | ACPI_EXCEPTION((AE_INFO, status, "Obtaining GPE bit")); |
1042 | "Error obtaining GPE bit assignment\n")); | ||
1043 | result = -ENODEV; | 1040 | result = -ENODEV; |
1044 | goto end; | 1041 | goto end; |
1045 | } | 1042 | } |
@@ -1110,8 +1107,7 @@ static int acpi_ec_intr_add(struct acpi_device *device) | |||
1110 | acpi_evaluate_integer(ec->common.handle, "_GPE", NULL, | 1107 | acpi_evaluate_integer(ec->common.handle, "_GPE", NULL, |
1111 | &ec->common.gpe_bit); | 1108 | &ec->common.gpe_bit); |
1112 | if (ACPI_FAILURE(status)) { | 1109 | if (ACPI_FAILURE(status)) { |
1113 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 1110 | ACPI_ERROR((AE_INFO, "Obtaining GPE bit assignment")); |
1114 | "Error obtaining GPE bit assignment\n")); | ||
1115 | result = -ENODEV; | 1111 | result = -ENODEV; |
1116 | goto end; | 1112 | goto end; |
1117 | } | 1113 | } |
@@ -1205,8 +1201,7 @@ static int acpi_ec_start(struct acpi_device *device) | |||
1205 | acpi_ec_io_ports, ec); | 1201 | acpi_ec_io_ports, ec); |
1206 | if (ACPI_FAILURE(status) | 1202 | if (ACPI_FAILURE(status) |
1207 | || ec->common.command_addr.register_bit_width == 0) { | 1203 | || ec->common.command_addr.register_bit_width == 0) { |
1208 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 1204 | ACPI_ERROR((AE_INFO, "Error getting I/O port addresses")); |
1209 | "Error getting I/O port addresses")); | ||
1210 | return_VALUE(-ENODEV); | 1205 | return_VALUE(-ENODEV); |
1211 | } | 1206 | } |
1212 | 1207 | ||