Skip to content

Commit

Permalink
mmc: sdhci-s3c: Use NULL instead of 0 for pointers
Browse files Browse the repository at this point in the history
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: Tushar Behera <tushar.behera@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
  • Loading branch information
Tushar Behera authored and Chris Ball committed Dec 6, 2012
1 parent a7e9687 commit ab5023e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mmc/host/sdhci-s3c.c
Original file line number Diff line number Diff line change
Expand Up @@ -456,12 +456,12 @@ static int __devinit sdhci_s3c_parse_dt(struct device *dev,
return -ENOMEM;

/* 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;
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;
goto setup_bus;
}
Expand Down

0 comments on commit ab5023e

Please sign in to comment.