1 Index: linux-2.6.25.4/drivers/ata/pata_rb153_cf.c
2 ===================================================================
3 --- linux-2.6.25.4.orig/drivers/ata/pata_rb153_cf.c
4 +++ linux-2.6.25.4/drivers/ata/pata_rb153_cf.c
5 @@ -68,20 +68,23 @@ static void rb153_pata_exec_command(stru
6 rb153_pata_finish_io(ap);
9 -static void rb153_pata_data_xfer(struct ata_device *adev, unsigned char *buf,
10 +static unsigned int rb153_pata_data_xfer(struct ata_device *adev, unsigned char *buf,
11 unsigned int buflen, int write_data)
13 void __iomem *ioaddr = adev->link->ap->ioaddr.data_addr;
19 - for (; buflen > 0; buflen--, buf++)
20 + for (; t > 0; t--, buf++)
23 - for (; buflen > 0; buflen--, buf++)
24 + for (; t > 0; t--, buf++)
28 rb153_pata_finish_io(adev->link->ap);
32 static void rb153_pata_freeze(struct ata_port *ap)