diff options
author | Tushar Behera <tushar.behera@linaro.org> | 2012-11-19 23:11:53 -0500 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-12-06 13:54:59 -0500 |
commit | ab5023efdcfa87512663aca120245b0fec8511eb (patch) | |
tree | 8f02db6f02848022a5e2ce2f15693daf20d3598e /drivers/mmc/host/sdhci-s3c.c | |
parent | a7e968799bbc1e7d6e56a77abd62c714509040c4 (diff) |
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: Tushar Behera <tushar.behera@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/sdhci-s3c.c')
-rw-r--r-- | drivers/mmc/host/sdhci-s3c.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/host/sdhci-s3c.c b/drivers/mmc/host/sdhci-s3c.c index c9ec725884e5..47bb04390f9c 100644 --- a/drivers/mmc/host/sdhci-s3c.c +++ b/drivers/mmc/host/sdhci-s3c.c | |||
@@ -456,12 +456,12 @@ static int __devinit sdhci_s3c_parse_dt(struct device *dev, | |||
456 | return -ENOMEM; | 456 | return -ENOMEM; |
457 | 457 | ||
458 | /* get the card detection method */ | 458 | /* get the card detection method */ |
459 | if (of_get_property(node, "broken-cd", 0)) { | 459 | if (of_get_property(node, "broken-cd", NULL)) { |
460 | pdata->cd_type = S3C_SDHCI_CD_NONE; | 460 | pdata->cd_type = S3C_SDHCI_CD_NONE; |
461 | goto setup_bus; | 461 | goto setup_bus; |
462 | } | 462 | } |
463 | 463 | ||
464 | if (of_get_property(node, "non-removable", 0)) { | 464 | if (of_get_property(node, "non-removable", NULL)) { |
465 | pdata->cd_type = S3C_SDHCI_CD_PERMANENT; | 465 | pdata->cd_type = S3C_SDHCI_CD_PERMANENT; |
466 | goto setup_bus; | 466 | goto setup_bus; |
467 | } | 467 | } |