[PATCH 2.6.24-rc0] au1xmmc: trivial buildfix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx>

--- 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


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux