]> git.sur5r.net Git - u-boot/commitdiff
pata_bfin: Make sata_{read,write}() comply with <part.h>
authorTom Rini <trini@ti.com>
Sat, 29 Sep 2012 14:56:31 +0000 (07:56 -0700)
committerTom Rini <trini@ti.com>
Mon, 15 Oct 2012 18:54:02 +0000 (11:54 -0700)
These functions take lbaint_t for blkcnt.

Signed-off-by: Tom Rini <trini@ti.com>
drivers/block/pata_bfin.c

index cce21fbc5409bc9b0f206c3bb2b72e0f282c52c9..2b4437efd326bdaf36fc340b3f266285fe449d2d 100644 (file)
@@ -1079,7 +1079,7 @@ static u8 do_one_read(struct ata_port *ap, u64 blknr, u8 blkcnt, u16 *buffer,
        return sr;
 }
 
-ulong sata_read(int dev, ulong block, ulong blkcnt, void *buff)
+ulong sata_read(int dev, ulong block, lbaint_t blkcnt, void *buff)
 {
        struct ata_port *ap = &port[dev];
        ulong n = 0, sread;
@@ -1121,7 +1121,7 @@ ulong sata_read(int dev, ulong block, ulong blkcnt, void *buff)
        return n;
 }
 
-ulong sata_write(int dev, ulong block, ulong blkcnt, const void *buff)
+ulong sata_write(int dev, ulong block, lbaint_t blkcnt, const void *buff)
 {
        struct ata_port *ap = &port[dev];
        void __iomem *base = (void __iomem *)ap->ioaddr.ctl_addr;