diff options
Diffstat (limited to 'net/rfkill')
-rw-r--r-- | net/rfkill/core.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/net/rfkill/core.c b/net/rfkill/core.c index fa430bd03f14..4e68ab439d5d 100644 --- a/net/rfkill/core.c +++ b/net/rfkill/core.c | |||
@@ -728,15 +728,11 @@ static int rfkill_resume(struct device *dev) | |||
728 | struct rfkill *rfkill = to_rfkill(dev); | 728 | struct rfkill *rfkill = to_rfkill(dev); |
729 | bool cur; | 729 | bool cur; |
730 | 730 | ||
731 | mutex_lock(&rfkill_global_mutex); | 731 | cur = !!(rfkill->state & RFKILL_BLOCK_SW); |
732 | cur = rfkill_global_states[rfkill->type].cur; | ||
733 | rfkill_set_block(rfkill, cur); | 732 | rfkill_set_block(rfkill, cur); |
734 | mutex_unlock(&rfkill_global_mutex); | ||
735 | 733 | ||
736 | rfkill->suspended = false; | 734 | rfkill->suspended = false; |
737 | 735 | ||
738 | schedule_work(&rfkill->uevent_work); | ||
739 | |||
740 | rfkill_resume_polling(rfkill); | 736 | rfkill_resume_polling(rfkill); |
741 | 737 | ||
742 | return 0; | 738 | return 0; |