]> git.karo-electronics.de Git - karo-tx-linux.git/commit
regulator: wm831x-ldo: Check return value of wm831x_reg_read()
authorAxel Lin <axel.lin@gmail.com>
Tue, 31 Jul 2012 13:28:26 +0000 (21:28 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 3 Aug 2012 22:21:30 +0000 (23:21 +0100)
commit2981448ea6a3fd814e5ba7350330d3968becd4e6
tree8abc301840071aee6164192bfbf0d4b604b829c4
parent4c79c8dbaf7816b8ab7909b276cb7b3a496f47d5
regulator: wm831x-ldo: Check return value of wm831x_reg_read()

wm831x_reg_read() returns negative error code on failure.
This prevents using the error code as the value read.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/wm831x-ldo.c