aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/fan.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/fan.c')
-rw-r--r--drivers/acpi/fan.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/acpi/fan.c b/drivers/acpi/fan.c
index 8abf5ac17f67..a56acdb37296 100644
--- a/drivers/acpi/fan.c
+++ b/drivers/acpi/fan.c
@@ -81,7 +81,7 @@ static int acpi_fan_read_state(struct seq_file *seq, void *offset)
81 81
82 82
83 if (fan) { 83 if (fan) {
84 if (acpi_bus_get_power(fan->handle, &state)) 84 if (acpi_bus_get_power(fan->device->handle, &state))
85 seq_printf(seq, "status: ERROR\n"); 85 seq_printf(seq, "status: ERROR\n");
86 else 86 else
87 seq_printf(seq, "status: %s\n", 87 seq_printf(seq, "status: %s\n",
@@ -113,7 +113,7 @@ acpi_fan_write_state(struct file *file, const char __user * buffer,
113 113
114 state_string[count] = '\0'; 114 state_string[count] = '\0';
115 115
116 result = acpi_bus_set_power(fan->handle, 116 result = acpi_bus_set_power(fan->device->handle,
117 simple_strtoul(state_string, NULL, 0)); 117 simple_strtoul(state_string, NULL, 0));
118 if (result) 118 if (result)
119 return result; 119 return result;
@@ -198,7 +198,7 @@ static int acpi_fan_add(struct acpi_device *device)
198 strcpy(acpi_device_class(device), ACPI_FAN_CLASS); 198 strcpy(acpi_device_class(device), ACPI_FAN_CLASS);
199 acpi_driver_data(device) = fan; 199 acpi_driver_data(device) = fan;
200 200
201 result = acpi_bus_get_power(fan->handle, &state); 201 result = acpi_bus_get_power(device->handle, &state);
202 if (result) { 202 if (result) {
203 printk(KERN_ERR PREFIX "Reading power state\n"); 203 printk(KERN_ERR PREFIX "Reading power state\n");
204 goto end; 204 goto end;