aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host
diff options
context:
space:
mode:
authorSeungwon Jeon <tgih.jun@samsung.com>2012-05-22 13:01:13 +0900
committerChris Ball <cjb@laptop.org>2012-06-06 09:37:03 -0400
commitfda5f736864c46324dbc50246ef1ca0e84ebf4ae (patch)
treed67b2b194c792f8e1cfe8d4111dcc31cb6e28ee7 /drivers/mmc/host
parentmmc: dw_mmc: fix the IDMAC sw reset (diff)
downloadlinux-dev-fda5f736864c46324dbc50246ef1ca0e84ebf4ae.tar.xz
linux-dev-fda5f736864c46324dbc50246ef1ca0e84ebf4ae.zip
mmc: dw_mmc: fix incorrect setting of host->data of NULL
Setting host->data to NULL is incorrect sequence in dw_mci_command_complete. This early setting makes the skip of dma_unmap_sg in dw_mci_dma_cleanup. Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com> Acked-by: Will Newton <will.newton@gmail.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host')
-rw-r--r--drivers/mmc/host/dw_mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
index 98fe02347d59..b070ee542c8e 100644
--- a/drivers/mmc/host/dw_mmc.c
+++ b/drivers/mmc/host/dw_mmc.c
@@ -941,8 +941,8 @@ static void dw_mci_command_complete(struct dw_mci *host, struct mmc_command *cmd
mdelay(20);
if (cmd->data) {
- host->data = NULL;
dw_mci_stop_dma(host);
+ host->data = NULL;
}
}
}