regulator: da9062: Check return value of devm_regmap_field_alloc calls
authorAxel Lin <axel.lin@ingics.com>
Sat, 26 Jan 2019 15:22:33 +0000 (23:22 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 28 Jan 2019 12:22:01 +0000 (12:22 +0000)
commit54129d641cac77b80f3c868a45cd776d783ca57b
tree3ae97d1f3afa3b063518fb29cd18c7501805ef09
parent252d1c20551b745f33a490892335d2b09f5d48a7
regulator: da9062: Check return value of devm_regmap_field_alloc calls

Since devm_regmap_field_alloc can fail, add error checking for it.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/da9062-regulator.c