summaryrefslogtreecommitdiff
path: root/drivers/block
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2012-09-29 07:56:31 -0700
committerTom Rini <trini@ti.com>2012-10-15 11:54:02 -0700
commit974d8014016a97ce7c8690aa0e9e77e161ce746d (patch)
tree9d9e0efd3b7c73c4b7a3ae07007558d1c3624d8b /drivers/block
parent40c030f8ff098a321cba56f2b2ce4d271023cff5 (diff)
downloadu-boot-imx-974d8014016a97ce7c8690aa0e9e77e161ce746d.zip
u-boot-imx-974d8014016a97ce7c8690aa0e9e77e161ce746d.tar.gz
u-boot-imx-974d8014016a97ce7c8690aa0e9e77e161ce746d.tar.bz2
pata_bfin: Make sata_{read,write}() comply with <part.h>
These functions take lbaint_t for blkcnt. Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/pata_bfin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/pata_bfin.c b/drivers/block/pata_bfin.c
index cce21fb..2b4437e 100644
--- a/drivers/block/pata_bfin.c
+++ b/drivers/block/pata_bfin.c
@@ -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;