diff options
author | Seungwon Jeon <tgih.jun@samsung.com> | 2012-05-22 00:01:13 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-06-06 09:37:03 -0400 |
commit | fda5f736864c46324dbc50246ef1ca0e84ebf4ae (patch) | |
tree | d67b2b194c792f8e1cfe8d4111dcc31cb6e28ee7 /drivers/mmc/host/dw_mmc.c | |
parent | 141a712a4eb09639dd4973a7c5e6999e3b8ae04a (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 <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/dw_mmc.c')
-rw-r--r-- | drivers/mmc/host/dw_mmc.c | 2 |
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 | |||
941 | mdelay(20); | 941 | mdelay(20); |
942 | 942 | ||
943 | if (cmd->data) { | 943 | if (cmd->data) { |
944 | host->data = NULL; | ||
945 | dw_mci_stop_dma(host); | 944 | dw_mci_stop_dma(host); |
945 | host->data = NULL; | ||
946 | } | 946 | } |
947 | } | 947 | } |
948 | } | 948 | } |