summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci-esdhc-imx.c
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2013-10-05 03:59:23 +0200
committerChris Ball <chris@printf.net>2014-01-13 18:48:14 +0100
commita50145f925c722dd74e18758fe4d9da9eb4c72ed (patch)
tree16a6b42c71a1a60d889bd1efbc1c5143682bc65a /drivers/mmc/host/sdhci-esdhc-imx.c
parentmmc: sdhci: Setting the host->mrq to NULL before executing tuning (diff)
downloadlinux-a50145f925c722dd74e18758fe4d9da9eb4c72ed.tar.xz
linux-a50145f925c722dd74e18758fe4d9da9eb4c72ed.zip
mmc: sdhci-esdhc-imx: Use NULL instead of zero
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>
Diffstat (limited to 'drivers/mmc/host/sdhci-esdhc-imx.c')
-rw-r--r--drivers/mmc/host/sdhci-esdhc-imx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c
index fa9c1b26e856..de2655e0db20 100644
--- a/drivers/mmc/host/sdhci-esdhc-imx.c
+++ b/drivers/mmc/host/sdhci-esdhc-imx.c
@@ -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];