regulator: max8925: Do not hardcode return value
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 18 Feb 2014 10:41:01 +0000 (16:11 +0530)
committerMark Brown <broonie@linaro.org>
Wed, 19 Feb 2014 13:08:35 +0000 (22:08 +0900)
commite9fa1a3ac62d5103fe2b8b54968f5d0fe9cf7fdf
treecd83804a10f394e9b55873a48a184975f39fda05
parent1f4f88c0aef7e52bb3ae067ae802b64fc8312188
regulator: max8925: Do not hardcode return value

Propagate the error value returned by the function instead.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/max8925-regulator.c