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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 14:37:47 +0000 (15:37 +0100)
commit2a8fb5b9fd37157b5017e1a8a5a6fe7946aa4df6
tree482241f607a2f1e8dc4591f8a561aed3b2fcd7b4
parent94848ffd66c2ddcb725a296b71b5f8dbe2cbeaa2
regulator: tps65910: fix a missing check of return value

[ Upstream commit cd07e3701fa6a4c68f8493ee1d12caa18d46ec6a ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/regulator/tps65910-regulator.c