]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: Fix return code from regulator_disable_deferred()
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 3 Oct 2011 21:42:43 +0000 (22:42 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 4 Oct 2011 15:50:16 +0000 (16:50 +0100)
commitd4cdb2adc64e040d59fd01ef64a0f5a8d13cb0db
treea11ba91bd5636199d7c83ca93bdadc27acfc3e83
parent58145441f585c21e5560679a1ec39a32568e851d
regulator: Fix return code from regulator_disable_deferred()

schedule_delayed_work() returns a bool indicating if the work was already
queued when it succeeds so we need to squash a true down to zero.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/core.c