1 --- a/drivers/ata/pata_rb153_cf.c
2 +++ b/drivers/ata/pata_rb153_cf.c
4 rb153_pata_finish_io(ap);
7 -static void rb153_pata_data_xfer(struct ata_device *adev, unsigned char *buf,
8 +static unsigned int rb153_pata_data_xfer(struct ata_device *adev, unsigned char *buf,
9 unsigned int buflen, int write_data)
11 void __iomem *ioaddr = adev->link->ap->ioaddr.data_addr;
17 - for (; buflen > 0; buflen--, buf++)
18 + for (; t > 0; t--, buf++)
21 - for (; buflen > 0; buflen--, buf++)
22 + for (; t > 0; t--, buf++)
26 rb153_pata_finish_io(adev->link->ap);
30 static void rb153_pata_freeze(struct ata_port *ap)