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>
Tue, 6 Mar 2012 17:46:35 +0000 (18:46 +0100)
commitc3ebb30aaeb2a30d69b9db564d93bf3486139c12
treec88289ba3691443df7c7c11f9eb38e66ab969d24
parentd2d5cb47e3e7e0f68d33d18ca15e4ac65ca5645b
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