regulator: gpio-regulator: gpio_set_value should use cansleep
authorLee Jones <lee.jones@linaro.org>
Mon, 10 Dec 2012 08:55:53 +0000 (08:55 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 10 Dec 2012 14:12:41 +0000 (23:12 +0900)
commit3708903ee60b1b89cbeee00cbc76e9fdbcbbed2e
tree88fc1702d7545db8aa84e6db2da5c166a599404e
parentad0b8b9e82b63ad2cc5e6822448adc897f49a5c4
regulator: gpio-regulator: gpio_set_value should use cansleep

If it's possible for gpio_set_value to sleep, we should be using
the *_cansleep call instead. This patch fixes multiple warnings
from gpiolib.

Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/gpio-regulator.c