Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 367608
b: refs/heads/master
c: f0c2958
h: refs/heads/master
v: v3
  • Loading branch information
Colin Ian King authored and Rafael J. Wysocki committed Mar 25, 2013
1 parent 8675b97 commit 04514cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: 994fa63c5b126df6e9f31ef4e09000e2e243234b
refs/heads/master: f0c29583db51104a7bc223b1e9c88d818f24ba4d
8 changes: 6 additions & 2 deletions trunk/drivers/acpi/fan.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,13 @@ static int acpi_fan_add(struct acpi_device *device)

static int acpi_fan_remove(struct acpi_device *device)
{
struct thermal_cooling_device *cdev = acpi_driver_data(device);
struct thermal_cooling_device *cdev;

if (!device)
return -EINVAL;

if (!device || !cdev)
cdev = acpi_driver_data(device);
if (!cdev)
return -EINVAL;

sysfs_remove_link(&device->dev.kobj, "thermal_cooling");
Expand Down

0 comments on commit 04514cd

Please sign in to comment.