Commit ab5023ef authored by Tushar Behera's avatar Tushar Behera Committed by Chris Ball

mmc: sdhci-s3c: Use NULL instead of 0 for pointers

The third argument for of_get_property() is a pointer, hence pass
NULL instead of 0.

Fixes the following sparse warning:
sdhci-s3c.c:452:48: warning: Using plain integer as NULL pointer
sdhci-s3c.c:457:52: warning: Using plain integer as NULL pointer
Signed-off-by: default avatarTushar Behera <tushar.behera@linaro.org>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent a7e96879
...@@ -456,12 +456,12 @@ static int __devinit sdhci_s3c_parse_dt(struct device *dev, ...@@ -456,12 +456,12 @@ static int __devinit sdhci_s3c_parse_dt(struct device *dev,
return -ENOMEM; return -ENOMEM;
/* get the card detection method */ /* get the card detection method */
if (of_get_property(node, "broken-cd", 0)) { if (of_get_property(node, "broken-cd", NULL)) {
pdata->cd_type = S3C_SDHCI_CD_NONE; pdata->cd_type = S3C_SDHCI_CD_NONE;
goto setup_bus; goto setup_bus;
} }
if (of_get_property(node, "non-removable", 0)) { if (of_get_property(node, "non-removable", NULL)) {
pdata->cd_type = S3C_SDHCI_CD_PERMANENT; pdata->cd_type = S3C_SDHCI_CD_PERMANENT;
goto setup_bus; goto setup_bus;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment