regulator: da9063: Check return value of devm_regmap_field_alloc calls
authorAxel Lin <axel.lin@ingics.com>
Sat, 26 Jan 2019 15:22:34 +0000 (23:22 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 28 Jan 2019 12:22:14 +0000 (12:22 +0000)
commit8459203940d0a46d26500f6d72ee041367ed9263
treee632ea387cb660265e2e2e08b3ed266dbabafd0d
parent54129d641cac77b80f3c868a45cd776d783ca57b
regulator: da9063: 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/da9063-regulator.c