Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 177502
b: refs/heads/master
c: 2b56f1c
h: refs/heads/master
v: v3
  • Loading branch information
Alan Jenkins authored and Len Brown committed Dec 9, 2009
1 parent 6b80c79 commit 2b90f07
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 487186880d31821eaaba0cc1f27d5a581c56981d
refs/heads/master: 2b56f1c170fc6338a7d907d6a7132669f9ccdf62
12 changes: 6 additions & 6 deletions trunk/drivers/platform/x86/eeepc-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -1074,10 +1074,10 @@ static void eeepc_hwmon_exit(void)

static void eeepc_led_exit(void)
{
if (led_workqueue)
destroy_workqueue(led_workqueue);
if (tpd_led.dev)
led_classdev_unregister(&tpd_led);
if (led_workqueue)
destroy_workqueue(led_workqueue);
}

static int eeepc_new_rfkill(struct rfkill **rfkill,
Expand Down Expand Up @@ -1243,14 +1243,14 @@ static int eeepc_led_init(struct device *dev)
if (get_acpi(CM_ASL_TPD) == -ENODEV)
return 0;

rv = led_classdev_register(dev, &tpd_led);
if (rv)
return rv;

led_workqueue = create_singlethread_workqueue("led_workqueue");
if (!led_workqueue)
return -ENOMEM;

rv = led_classdev_register(dev, &tpd_led);
if (rv)
return rv;

return 0;
}

Expand Down

0 comments on commit 2b90f07

Please sign in to comment.