Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH 2.6.24-rc0] au1xmmc: trivial buildfix
@ 2007-10-18 19:03 Manuel Lauss
  2007-10-19 11:12 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Manuel Lauss @ 2007-10-18 19:03 UTC (permalink / raw)
  To: linux-mips

Hi,

Fix a trivial error in au1xmmc. 
Not run-tested since there are some rather funky IRQ issues
with this kernel...

--- 

au1xmmc: trivial buildfix

Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net>

--- linux-2.6.23-git13/drivers/mmc/host/au1xmmc.c.orig	2007-10-18 15:35:25.930405000 +0200
+++ linux-2.6.23-git13/drivers/mmc/host/au1xmmc.c	2007-10-18 15:35:49.150405000 +0200
@@ -212,12 +212,12 @@ static int au1xmmc_send_command(struct a
 	}
 
 	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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-10-19 11:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-18 19:03 [PATCH 2.6.24-rc0] au1xmmc: trivial buildfix Manuel Lauss
2007-10-19 11:12 ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox