rt2x00: Fix rfkill_polling register function.
authorChen, Chien-Chia <machen@suse.com>
Thu, 29 Mar 2012 10:21:47 +0000 (18:21 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 10 Apr 2012 18:14:28 +0000 (14:14 -0400)
commite2bc7c5f3cb8756865aa0ab140d2288f61599dda
tree7cdbfbba1912292d50dcf72f51b5c11982ccab30
parent58f743ee06d400a887a3e30353c69c3151eb64df
rt2x00: Fix rfkill_polling register function.

  Move rt2x00rfkill_register(rt2x00dev) to rt2x00lib_probe_dev
  function. It fixes of starting rfkill_poll function at the
  right time if sets hard rfkill block and reboot. rt2x00mac_rfkill_poll
  should be starting before bringing up the wireless interface.

Signed-off-by: Chen, Chien-Chia <machen@suse.com>
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com>
CC: Kevin Chou <kevin.chou@mediatek.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00dev.c