aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mmc/host/atmel-mci.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c
index 5d68ac958112..b5c95043f7ef 100644
--- a/drivers/mmc/host/atmel-mci.c
+++ b/drivers/mmc/host/atmel-mci.c
@@ -1794,12 +1794,14 @@ static void atmci_tasklet_func(unsigned long priv)
1794 if (unlikely(status)) { 1794 if (unlikely(status)) {
1795 host->stop_transfer(host); 1795 host->stop_transfer(host);
1796 host->data = NULL; 1796 host->data = NULL;
1797 if (status & ATMCI_DTOE) { 1797 if (data) {
1798 data->error = -ETIMEDOUT; 1798 if (status & ATMCI_DTOE) {
1799 } else if (status & ATMCI_DCRCE) { 1799 data->error = -ETIMEDOUT;
1800 data->error = -EILSEQ; 1800 } else if (status & ATMCI_DCRCE) {
1801 } else { 1801 data->error = -EILSEQ;
1802 data->error = -EIO; 1802 } else {
1803 data->error = -EIO;
1804 }
1803 } 1805 }
1804 } 1806 }
1805 1807