]> git.baikalelectronics.ru Git - kernel.git/commit
rfkill-gpio: Use gpio cansleep version
authorLoic Poulain <loic.poulain@intel.com>
Wed, 7 May 2014 09:38:11 +0000 (11:38 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 7 May 2014 11:20:59 +0000 (13:20 +0200)
commit8ea35bb04a078503d56c0402e9193dc6cb3836d7
treea2b7a5154245dca80db205967650b2e82eff350e
parent06ac1031681b1a9c614fc0f02b67b23d4ceef452
rfkill-gpio: Use gpio cansleep version

If gpio controller requires waiting for read and write
GPIO values, then we have to use the gpio cansleep api.
Fix the rfkill_gpio_set_power which calls only the
nonsleep version (causing kernel warning).
There is no problem to use the cansleep version here
because we are not in IRQ handler or similar context
(cf rfkill_set_block).

Signed-off-by: Loic Poulain <loic.poulain@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/rfkill/rfkill-gpio.c