From: Pierre Ossman Date: Mon, 22 Oct 2007 16:16:16 +0000 (+0200) Subject: at91_mci: Fix bad reference X-Git-Tag: v2.6.24-rc2~127^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6356a9d955e1898eadaa8cba9a5137b1787c0c7e;p=linux-2.6-omap-h63xx.git at91_mci: Fix bad reference The flags parameter got removed in a previous commit, but some references were overlooked. Signed-off-by: Pierre Ossman --- diff --git a/drivers/mmc/host/au1xmmc.c b/drivers/mmc/host/au1xmmc.c index c77fadc0dfa..b2104d4f87a 100644 --- a/drivers/mmc/host/au1xmmc.c +++ b/drivers/mmc/host/au1xmmc.c @@ -212,12 +212,12 @@ static int au1xmmc_send_command(struct au1xmmc_host *host, int wait, } if (data) { - if (flags & MMC_DATA_READ) { + if (data->flags & MMC_DATA_READ) { if (data->blocks > 1) mmccmd |= SD_CMD_CT_4; else mmccmd |= SD_CMD_CT_2; - } else if (flags & MMC_DATA_WRITE) { + } else if (data->flags & MMC_DATA_WRITE) { if (data->blocks > 1) mmccmd |= SD_CMD_CT_3; else