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)
commitaa59802dedac98dc95310a456121cec6a9d6b63f
treea11ba91bd5636199d7c83ca93bdadc27acfc3e83
parent38f3f31a0a797bdbcc0cdb12553bbecc2f9a91c4
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