mfd: 88pm800: Fix potential NULL pdata dereference
authorChao Xie <chao.xie@marvell.com>
Mon, 19 Aug 2013 01:27:54 +0000 (21:27 -0400)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 2 Sep 2013 08:59:57 +0000 (10:59 +0200)
commitb432fc25b5b0311a58772fefe8d07e143600e908
tree163ed443bf5697d11e78d3218e33e36135b54214
parentf4388ca7f1e7c19a406700b3d1d3bfbf15d14115
mfd: 88pm800: Fix potential NULL pdata dereference

User pass platform data to device, and platform data may be
NULL. Add the check for pdata.

Signed-off-by: Chao Xie <chao.xie@marvell.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/88pm800.c