Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272003
b: refs/heads/master
c: e929802
h: refs/heads/master
i:
  272001: 41f6ff0
  271999: 4e30b83
v: v3
  • Loading branch information
Axel Lin authored and Matthew Garrett committed Oct 24, 2011
1 parent c87d791 commit dc6527c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 5d6afd150321a9e6f1180f5dced9032cce6861ac
refs/heads/master: e9298028ee69bda44607156e7348cd32f7ab9360
4 changes: 3 additions & 1 deletion trunk/drivers/platform/x86/asus-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,9 @@ static enum led_brightness kbd_led_get(struct led_classdev *led_cdev)

static void asus_wmi_led_exit(struct asus_wmi *asus)
{
if (asus->tpd_led.dev)
if (!IS_ERR_OR_NULL(asus->kbd_led.dev))
led_classdev_unregister(&asus->kbd_led);
if (!IS_ERR_OR_NULL(asus->tpd_led.dev))
led_classdev_unregister(&asus->tpd_led);
if (asus->led_workqueue)
destroy_workqueue(asus->led_workqueue);
Expand Down

0 comments on commit dc6527c

Please sign in to comment.