]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
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>
Mon, 9 Dec 2013 10:34:33 +0000 (10:34 +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 3a20b47d065b30bbff41cc722dffd2fa730e2bf0..87fa1e653cb696e5c179dad82ab32367caf189a0 100644 (file)
@@ -199,7 +199,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