regulator: fan53555: Fix null pointer dereference
authorAxel Lin <axel.lin@ingics.com>
Thu, 18 Sep 2014 13:49:38 +0000 (21:49 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 18 Sep 2014 18:01:10 +0000 (11:01 -0700)
commite13426bf249b4928ad914c9ddf7f8b7e5a93e1c6
treea0e0c2df9c4ec02eeb030751dbc59b0ff9d5725b
parentfe230531b3f94f33e5a4c0b201b651188c6cc132
regulator: fan53555: Fix null pointer dereference

Set di->regulator before dereference it.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/fan53555.c