diff options
author | Pierre Ossman <drzeus@drzeus.cx> | 2007-07-24 21:11:47 +0200 |
---|---|---|
committer | Pierre Ossman <drzeus@drzeus.cx> | 2007-09-23 09:15:12 +0200 |
commit | be0192aae1aed3fbf172e3f9a22ec75392c1b175 (patch) | |
tree | b70080bf73fad74fe196a568e57b18c6e7ade8ef /drivers/mmc/host/at91_mci.c | |
parent | 255d01af9a990fd5166f04ed0cc0b30b7b67e81e (diff) | |
download | op-kernel-dev-be0192aae1aed3fbf172e3f9a22ec75392c1b175.zip op-kernel-dev-be0192aae1aed3fbf172e3f9a22ec75392c1b175.tar.gz |
mmc: remove confusing flag
The MMC_DATA_MULTI flag never had a proper definition of what it
means, so remove it and let the drivers check the block count in
the request.
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'drivers/mmc/host/at91_mci.c')
-rw-r--r-- | drivers/mmc/host/at91_mci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/host/at91_mci.c b/drivers/mmc/host/at91_mci.c index 576d7cb..8ec3178 100644 --- a/drivers/mmc/host/at91_mci.c +++ b/drivers/mmc/host/at91_mci.c @@ -328,7 +328,7 @@ static void at91_mci_handle_transmitted(struct at91mci_host *host) data = cmd->data; if (!data) return; - if (cmd->data->flags & MMC_DATA_MULTI) { + if (cmd->data->blocks > 1) { pr_debug("multiple write : wait for BLKE...\n"); at91_mci_write(host, AT91_MCI_IER, AT91_MCI_BLKE); } else @@ -439,7 +439,7 @@ static void at91_mci_send_command(struct at91mci_host *host, struct mmc_command if (data->flags & MMC_DATA_STREAM) cmdr |= AT91_MCI_TRTYP_STREAM; - if (data->flags & MMC_DATA_MULTI) + if (data->blocks > 1) cmdr |= AT91_MCI_TRTYP_MULTIPLE; } else { |