aboutsummaryrefslogtreecommitdiff
path: root/drivers/acpi/fan.c
diff options
context:
space:
mode:
authorPatrick Mochel <mochel@linux.intel.com>2006-05-19 16:54:42 -0400
committerLen Brown <len.brown@intel.com>2006-06-30 02:42:09 -0400
commitdc8c2b2744f8563aa5feb07488e4cc207a70ac70 (patch)
treeb9095253f00545e464ec42bda54d144027e0340c /drivers/acpi/fan.c
parent27b1d3e85b1dfd9037d3fbb98b2e2aacca01da39 (diff)
ACPI: fan: Use acpi_device's handle instead of driver's
Signed-off-by: Patrick Mochel <mochel@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
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 8abf5ac17f6..a56acdb3729 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)
if (fan) {
- if (acpi_bus_get_power(fan->handle, &state))
+ if (acpi_bus_get_power(fan->device->handle, &state))
seq_printf(seq, "status: ERROR\n");
else
seq_printf(seq, "status: %s\n",
@@ -113,7 +113,7 @@ acpi_fan_write_state(struct file *file, const char __user * buffer,
state_string[count] = '\0';
- result = acpi_bus_set_power(fan->handle,
+ result = acpi_bus_set_power(fan->device->handle,
simple_strtoul(state_string, NULL, 0));
if (result)
return result;
@@ -198,7 +198,7 @@ static int acpi_fan_add(struct acpi_device *device)
strcpy(acpi_device_class(device), ACPI_FAN_CLASS);
acpi_driver_data(device) = fan;
- result = acpi_bus_get_power(fan->handle, &state);
+ result = acpi_bus_get_power(device->handle, &state);
if (result) {
printk(KERN_ERR PREFIX "Reading power state\n");
goto end;