1 Per definition, this function should return the number of bytes
2 consumed. Also take care of the unlikely case when buflen is not a
3 multiple of four; while transferring, the division cuts the remaining
4 bytes, so alter the return value accordingly.
6 Signed-off-by: Phil Sutter <n0-1@freewrt.org>
8 diff -urN linux-2.6.28.7/drivers/ata/pata_rb532_cf.c linux-2.6.28.7.new/drivers/ata/pata_rb532_cf.c
9 --- linux-2.6.28.7/drivers/ata/pata_rb532_cf.c 2009-03-15 13:29:09.000000000 +0100
10 +++ linux-2.6.28.7.new/drivers/ata/pata_rb532_cf.c 2009-03-15 13:29:46.000000000 +0100
12 readsl(ioaddr, buf, buflen / sizeof(u32));
14 rb532_pata_finish_io(adev->link->ap);
16 + return buflen - (buflen % sizeof(u32));;
19 static void rb532_pata_freeze(struct ata_port *ap)