Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 150694
b: refs/heads/master
c: 2ec2c68
h: refs/heads/master
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Jun 3, 2009
1 parent b966dd6 commit 7b4b623
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 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: 72828b1b3cabecfce4321877aa526a2bd21acf0c
refs/heads/master: 2ec2c68c11af95075f29e370970eb97c89234e2e
13 changes: 6 additions & 7 deletions trunk/net/rfkill/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -909,16 +909,15 @@ int __must_check rfkill_register(struct rfkill *rfkill)

rfkill->registered = true;

if (rfkill->ops->poll) {
INIT_DELAYED_WORK(&rfkill->poll_work, rfkill_poll);
schedule_delayed_work(&rfkill->poll_work,
round_jiffies_relative(POLL_INTERVAL));
}

INIT_DELAYED_WORK(&rfkill->poll_work, rfkill_poll);
INIT_WORK(&rfkill->uevent_work, rfkill_uevent_work);

INIT_WORK(&rfkill->sync_work, rfkill_sync_work);

if (rfkill->ops->poll)
schedule_delayed_work(&rfkill->poll_work,
round_jiffies_relative(POLL_INTERVAL));
schedule_work(&rfkill->sync_work);

rfkill_send_events(rfkill, RFKILL_OP_ADD);

mutex_unlock(&rfkill_global_mutex);
Expand Down

0 comments on commit 7b4b623

Please sign in to comment.