[libata] pata_rb532_cf: fix signature of the xfer function
authorPhil Sutter <n0-1@freewrt.org>
Fri, 28 Nov 2008 19:48:35 +0000 (20:48 +0100)
committerJeff Garzik <jgarzik@redhat.com>
Mon, 1 Dec 2008 18:49:17 +0000 (13:49 -0500)
commit03f60840fa462e92220b093f778b2426ceab23af
tree5770676fec230ddee8357b3210890f34f80a6bf8
parent9f14786e27908a176f0568cf2132558efef71b31
[libata] pata_rb532_cf: fix signature of the xfer function

Per definition, this function should return the number of bytes
consumed. As the original parameter "buflen" is being decremented inside
the read/write loop, save it in "retlen" at the beginning.

Signed-off-by: Phil Sutter <n0-1@freewrt.org>
Acked-by: Sergei Shtyltov <sshtylyov@ru.mvista.com>
Acked-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Acked-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/pata_rb532_cf.c