regulator: tps65910: fix a missing check of return value
authorKangjie Lu <kjlu@umn.edu>
Fri, 21 Dec 2018 06:29:19 +0000 (00:29 -0600)
committerMark Brown <broonie@kernel.org>
Fri, 21 Dec 2018 11:04:59 +0000 (11:04 +0000)
commitcd07e3701fa6a4c68f8493ee1d12caa18d46ec6a
tree18a4c4cd9fa2f910e8ad1c8b25860d0b39fc6c6f
parent77ea906082dcfa63ad8a07ace6d5033d30c4175b
regulator: tps65910: fix a missing check of return value

tps65910_reg_set_bits() may fail. The fix checks if it fails, and if so,
returns with its error code.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/tps65910-regulator.c