regulator: s5m8767: Prevent possible NULL pointer dereference
authorAxel Lin <axel.lin@ingics.com>
Wed, 13 Feb 2013 01:31:31 +0000 (09:31 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 13 Feb 2013 12:52:19 +0000 (12:52 +0000)
commite81d7bc89c9623ea000890fb4cdf7e731dc21f71
treeef2822bf7b852b1411efc72e64a3c4cf2789683e
parentcbb0ed495ca165a94d66610adf64961f2117ec36
regulator: s5m8767: Prevent possible NULL pointer dereference

s5m8767_pmic_dt_parse_pdata dereferenes pdata, thus check pdata earlier to
avoid NULL pointer dereference.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/s5m8767.c