aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorAndrew Victor <andrew@sanpeople.com>2007-10-17 05:53:40 -0400
committerPierre Ossman <drzeus@drzeus.cx>2007-10-17 15:35:10 -0400
commit9e3866b54867c401da8d9a665d228cf0977ab5be (patch)
treec0da16228c9a6e184150bb787d260fa797248d67 /drivers/mmc
parent00cedfa67b3ab1588e2665eabd9843a3d8dd1dfc (diff)
mmc: at91_mci: cleanup: use MCI_ERRORS
A small MMC driver cleanup. Use the defined AT91_MCI_ERRORS in at91_mci_completed_command() instead of specifying all the error bits individually. Signed-off-by: Andrew Victor <andrew@sanpeople.com> Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/at91_mci.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mmc/host/at91_mci.c b/drivers/mmc/host/at91_mci.c
index 6ba98a49612..7a452c2ad1f 100644
--- a/drivers/mmc/host/at91_mci.c
+++ b/drivers/mmc/host/at91_mci.c
@@ -581,9 +581,7 @@ static void at91_mci_completed_command(struct at91mci_host *host)
581 pr_debug("Status = %08X [%08X %08X %08X %08X]\n", 581 pr_debug("Status = %08X [%08X %08X %08X %08X]\n",
582 status, cmd->resp[0], cmd->resp[1], cmd->resp[2], cmd->resp[3]); 582 status, cmd->resp[0], cmd->resp[1], cmd->resp[2], cmd->resp[3]);
583 583
584 if (status & (AT91_MCI_RINDE | AT91_MCI_RDIRE | AT91_MCI_RCRCE | 584 if (status & AT91_MCI_ERRORS) {
585 AT91_MCI_RENDE | AT91_MCI_RTOE | AT91_MCI_DCRCE |
586 AT91_MCI_DTOE | AT91_MCI_OVRE | AT91_MCI_UNRE)) {
587 if ((status & AT91_MCI_RCRCE) && !(mmc_resp_type(cmd) & MMC_RSP_CRC)) { 585 if ((status & AT91_MCI_RCRCE) && !(mmc_resp_type(cmd) & MMC_RSP_CRC)) {
588 cmd->error = 0; 586 cmd->error = 0;
589 } 587 }