rfkill: always call get_state() hook on resume
commit0152201f57e8098acc817e01d0b9b038cc8c52fc
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 3 May 2009 01:21:07 +0000 (2 22:21 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 3 May 2009 01:21:07 +0000 (2 22:21 -0300)
tree8a3bc8ecbbcf20e4e31f6f1e6714ee4673c0d333
parent47e1aa01b4d0c83d397f24c08bce5460360d7276
rfkill: always call get_state() hook on resume

We "optimize" away the get_state() hook call on rfkill_toggle_radio
when doing a forced state change.  This means the resume path is not
calling get_state() as it should.

Call it manually on the resume handler, as we don't want to mess with
the EPO path by removing the optimization.  This has the added benefit
of making it explicit that rfkill->state could have been modified
before we hit the rfkill_toggle_radio() call in the class resume
handler.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Ivo van Doorn <IvDoorn@gmail.com>
Cc: Matthew Garrett <mjg59@srcf.ucam.org>
Cc: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
net/rfkill/rfkill.c