Commit 974d8014 authored by Tom Rini's avatar Tom Rini

pata_bfin: Make sata_{read,write}() comply with <part.h>

These functions take lbaint_t for blkcnt.
Signed-off-by: default avatarTom Rini <trini@ti.com>
parent 40c030f8
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment