mfd: sec-core: Fix sparse NULL pointer warning
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sat, 7 Dec 2013 06:02:15 +0000 (14:02 +0800)
committerLee Jones <lee.jones@linaro.org>
Tue, 21 Jan 2014 08:28:03 +0000 (08:28 +0000)
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>
drivers/mfd/sec-core.c

index 3ad1b2fbee4acc3350aa6d4f1a8253c7317fca4c..56615af42a281b6017584f4d6308b0672be388ad 100644 (file)
@@ -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