soc: mediatek: PMIC wrap: Fix possible NULL derefrence.
authorshailendra.v@samsung.com <shailendra.v@samsung.com>
Fri, 27 Jan 2017 11:17:48 +0000 (16:47 +0530)
committerMatthias Brugger <matthias.bgg@gmail.com>
Mon, 15 May 2017 08:47:25 +0000 (10:47 +0200)
commit58a823dd7b515827ed07adb268e1769b3c292586
tree3eceb889b0c132363717ef403777567c7fad7382
parentf282693f808723b6593db34c47fa0e17cb52586f
soc: mediatek: PMIC wrap: Fix possible NULL derefrence.

of_match_device could return NULL, and so can cause a NULL
pointer dereference later.

Signed-off-by: Shailendra Verma <shailendra.v@samsung.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/mtk-pmic-wrap.c