diff options
Diffstat (limited to 'drivers/acpi/fan.c')
-rw-r--r-- | drivers/acpi/fan.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/acpi/fan.c b/drivers/acpi/fan.c index 1cd25784b7a4..c1d470557b9f 100644 --- a/drivers/acpi/fan.c +++ b/drivers/acpi/fan.c | |||
@@ -153,9 +153,7 @@ static int acpi_fan_add_fs(struct acpi_device *device) | |||
153 | S_IFREG | S_IRUGO | S_IWUSR, | 153 | S_IFREG | S_IRUGO | S_IWUSR, |
154 | acpi_device_dir(device)); | 154 | acpi_device_dir(device)); |
155 | if (!entry) | 155 | if (!entry) |
156 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 156 | return_VALUE(-ENODEV); |
157 | "Unable to create '%s' fs entry\n", | ||
158 | ACPI_FAN_FILE_STATE)); | ||
159 | else { | 157 | else { |
160 | entry->proc_fops = &acpi_fan_state_ops; | 158 | entry->proc_fops = &acpi_fan_state_ops; |
161 | entry->data = acpi_driver_data(device); | 159 | entry->data = acpi_driver_data(device); |
@@ -205,8 +203,7 @@ static int acpi_fan_add(struct acpi_device *device) | |||
205 | 203 | ||
206 | result = acpi_bus_get_power(fan->handle, &state); | 204 | result = acpi_bus_get_power(fan->handle, &state); |
207 | if (result) { | 205 | if (result) { |
208 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 206 | ACPI_ERROR((AE_INFO, "Reading power state")); |
209 | "Error reading power state\n")); | ||
210 | goto end; | 207 | goto end; |
211 | } | 208 | } |
212 | 209 | ||