mfd: Fix possible s5m null pointer dereference
authorJonghwan Choi <jhbird.choi@samsung.com>
Mon, 16 Jan 2012 00:08:42 +0000 (09:08 +0900)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 20 Feb 2012 15:18:55 +0000 (16:18 +0100)
commit4a55320117e2ca4ed9002a365d7e209d73abcdf1
tree58a7f1f3fed2b481c64f39dcdfcea1529f48bc66
parentaa12242f19312b2c60399bd581929fdfc511a017
mfd: Fix possible s5m null pointer dereference

This patch checks for pdata to using it.

Signed-off-by: Jonghwan Choi <jhbird.choi@samsung.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/s5m-core.c