summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei Yongjun2013-12-07 07:02:15 +0100
committerLee Jones2014-01-21 09:28:03 +0100
commit005718c08be33e28ab89e820256bcf1fad4a370a (patch)
tree41e09eca4148b7dc53ee622dfc58d9bafd5e665b
parentmfd: sta2x11-mfd: Fix return value check in sta2x11_mfd_platform_probe() (diff)
downloadkernel-qcow2-linux-005718c08be33e28ab89e820256bcf1fad4a370a.tar.gz
kernel-qcow2-linux-005718c08be33e28ab89e820256bcf1fad4a370a.tar.xz
kernel-qcow2-linux-005718c08be33e28ab89e820256bcf1fad4a370a.zip
mfd: sec-core: Fix sparse NULL pointer warning
Fixes the following sparse warning: drivers/mfd/sec-core.c:202:16: warning: Using plain integer as NULL pointer Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r--drivers/mfd/sec-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c
index 3ad1b2fbee4a..56615af42a28 100644
--- a/drivers/mfd/sec-core.c
+++ b/drivers/mfd/sec-core.c
@@ -204,7 +204,7 @@ static struct sec_platform_data *sec_pmic_i2c_parse_dt_pdata(
static struct sec_platform_data *sec_pmic_i2c_parse_dt_pdata(
struct device *dev)
{
- return 0;
+ return NULL;
}
#endif