regulator: anatop: check return value of of_get_regulator_init_data
authorDong Aisheng <aisheng.dong@nxp.com>
Wed, 12 Apr 2017 01:58:42 +0000 (09:58 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 11 Apr 2017 20:35:54 +0000 (21:35 +0100)
commit7f51cf2ea7186e3f217e616a5522f1156678356f
tree44fa0f5e40ec3d6ca5b1c8cd9d5f657c9c6d76d4
parentd00b74613fb18dfd0a5aa99270ee2e72d5c808d7
regulator: anatop: check return value of of_get_regulator_init_data

Should check the return value of of_get_regulator_init_data before
using it.

Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/anatop-regulator.c