aboutsummaryrefslogtreecommitdiffstats
path: root/net/rfkill/rfkill.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/rfkill/rfkill.c')
-rw-r--r--net/rfkill/rfkill.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/rfkill/rfkill.c b/net/rfkill/rfkill.c
index c6f2f388cb72..5c24f3647189 100644
--- a/net/rfkill/rfkill.c
+++ b/net/rfkill/rfkill.c
@@ -589,7 +589,8 @@ static void rfkill_led_trigger_register(struct rfkill *rfkill)
589#ifdef CONFIG_RFKILL_LEDS 589#ifdef CONFIG_RFKILL_LEDS
590 int error; 590 int error;
591 591
592 rfkill->led_trigger.name = rfkill->dev.bus_id; 592 if (!rfkill->led_trigger.name)
593 rfkill->led_trigger.name = rfkill->dev.bus_id;
593 error = led_trigger_register(&rfkill->led_trigger); 594 error = led_trigger_register(&rfkill->led_trigger);
594 if (error) 595 if (error)
595 rfkill->led_trigger.name = NULL; 596 rfkill->led_trigger.name = NULL;