Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 107085
b: refs/heads/master
c: 37f55e9
h: refs/heads/master
i:
  107083: 2e85c53
v: v3
  • Loading branch information
Henrique de Moraes Holschuh authored and John W. Linville committed Jul 29, 2008
1 parent 31f0ffb commit 05858b6
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 2fd9b2212e25e6411b6f309707f4e2683d164250
refs/heads/master: 37f55e9d78d1b63047b1b7ae175cdce650547ba8
6 changes: 4 additions & 2 deletions trunk/net/rfkill/rfkill.c
Original file line number Diff line number Diff line change
Expand Up @@ -590,8 +590,10 @@ static void rfkill_led_trigger_register(struct rfkill *rfkill)
static void rfkill_led_trigger_unregister(struct rfkill *rfkill)
{
#ifdef CONFIG_RFKILL_LEDS
if (rfkill->led_trigger.name)
if (rfkill->led_trigger.name) {
led_trigger_unregister(&rfkill->led_trigger);
rfkill->led_trigger.name = NULL;
}
#endif
}

Expand Down Expand Up @@ -627,8 +629,8 @@ int rfkill_register(struct rfkill *rfkill)

error = device_add(dev);
if (error) {
rfkill_led_trigger_unregister(rfkill);
rfkill_remove_switch(rfkill);
rfkill_led_trigger_unregister(rfkill);
return error;
}

Expand Down

0 comments on commit 05858b6

Please sign in to comment.