aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungwon Jeon <[email protected]>2012-05-22 13:01:13 +0900
committerChris Ball <[email protected]>2012-06-06 09:37:03 -0400
commitfda5f736864c46324dbc50246ef1ca0e84ebf4ae (patch)
treed67b2b194c792f8e1cfe8d4111dcc31cb6e28ee7
parent141a712a4eb09639dd4973a7c5e6999e3b8ae04a (diff)
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 <[email protected]> Acked-by: Will Newton <[email protected]> Signed-off-by: Chris Ball <[email protected]>
-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;
}
}
}