rfkill: always init poll delayed work
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 3 Jun 2009 07:55:29 +0000 (09:55 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 3 Jun 2009 18:06:15 +0000 (14:06 -0400)
commit2ec2c68c11af95075f29e370970eb97c89234e2e
treedd0749b38d54f41f1823a992815971b02b3e489f
parent72828b1b3cabecfce4321877aa526a2bd21acf0c
rfkill: always init poll delayed work

The rfkill core didn't initialise the poll delayed work
because it assumed that polling was always done by specifying
the poll function. cfg80211, however, would like to start
polling only later, which is a valid use case and easy to
support, so change rfkill to always initialise the poll
delayed work and thus allow starting polling by calling the
rfkill_resume_polling() function after registration.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/rfkill/core.c