]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mmc: sdhci-esdhc-imx: Use NULL instead of zero
authorFabio Estevam <fabio.estevam@freescale.com>
Sat, 5 Oct 2013 01:59:23 +0000 (22:59 -0300)
committerChris Ball <cjb@laptop.org>
Thu, 12 Dec 2013 01:18:48 +0000 (20:18 -0500)
Fix the following sparse warning:

drivers/mmc/host/sdhci-esdhc-imx.c:617:35: warning: Using plain integer as NULL pointer

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Cc: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci-esdhc-imx.c

index fa9c1b26e856ea94b7b54b846eaddf0b483b4d4d..de2655e0db2048ff5f7243ee39576a054b1933d8 100644 (file)
@@ -718,7 +718,7 @@ static void esdhc_request_done(struct mmc_request *mrq)
 static int esdhc_send_tuning_cmd(struct sdhci_host *host, u32 opcode)
 {
        struct mmc_command cmd = {0};
-       struct mmc_request mrq = {0};
+       struct mmc_request mrq = {NULL};
        struct mmc_data data = {0};
        struct scatterlist sg;
        char tuning_pattern[ESDHC_TUNING_BLOCK_PATTERN_LEN];