Commit 6356a9d9 authored by Pierre Ossman's avatar Pierre Ossman

at91_mci: Fix bad reference

The flags parameter got removed in a previous commit, but some
references were overlooked.
Signed-off-by: default avatarPierre Ossman <drzeus@drzeus.cx>
parent ade8c56c
...@@ -212,12 +212,12 @@ static int au1xmmc_send_command(struct au1xmmc_host *host, int wait, ...@@ -212,12 +212,12 @@ static int au1xmmc_send_command(struct au1xmmc_host *host, int wait,
} }
if (data) { if (data) {
if (flags & MMC_DATA_READ) { if (data->flags & MMC_DATA_READ) {
if (data->blocks > 1) if (data->blocks > 1)
mmccmd |= SD_CMD_CT_4; mmccmd |= SD_CMD_CT_4;
else else
mmccmd |= SD_CMD_CT_2; mmccmd |= SD_CMD_CT_2;
} else if (flags & MMC_DATA_WRITE) { } else if (data->flags & MMC_DATA_WRITE) {
if (data->blocks > 1) if (data->blocks > 1)
mmccmd |= SD_CMD_CT_3; mmccmd |= SD_CMD_CT_3;
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment