rfkill: Register LED triggers before registering switch
authorMichael Buesch <mb@bu3sch.de>
Sun, 28 Oct 2007 12:07:54 +0000 (13:07 +0100)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 11 Nov 2007 05:59:11 +0000 (21:59 -0800)
commit8a8f1c0437a77cce29c1cb6089f01f22a6d9ca6e
treeaff63cd4d043135c50cccd43ee32db57f62e79b9
parent8d8c90e3fd1f8895f6d48bdcb34ba69a1fe73616
rfkill: Register LED triggers before registering switch

Registering the switch triggers a LED event, so we must register
LED triggers before the switch.
This has a potential to fix a crash, depending on how the device
driver initializes the rfkill data structure.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/rfkill/rfkill.c