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>
Tue, 28 Aug 2012 18:00:25 +0000 (11:00 -0700)
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>

No differences found