Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 32003
b: refs/heads/master
c: dc8c2b2
h: refs/heads/master
i:
  32001: b19a535
  31999: ed5d477
v: v3
  • Loading branch information
Patrick Mochel authored and Len Brown committed Jun 30, 2006
1 parent 8892ea7 commit 0dc6c8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 27b1d3e85b1dfd9037d3fbb98b2e2aacca01da39
refs/heads/master: dc8c2b2744f8563aa5feb07488e4cc207a70ac70
6 changes: 3 additions & 3 deletions trunk/drivers/acpi/fan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 0dc6c8d

Please sign in to comment.