Patchwork [U-Boot,v1,5/9] pata_bfin: Make sata_{read, write}() comply with <part.h>

login
register
mail settings
Submitter Tom Rini
Date Sept. 29, 2012, 8:51 p.m.
Message ID <1348951916-3495-6-git-send-email-trini@ti.com>
Download mbox | patch
Permalink /patch/188056/
State Accepted
Delegated to: Tom Rini
Headers show

Comments

Tom Rini - Sept. 29, 2012, 8:51 p.m.
These functions take lbaint_t for blkcnt.

Signed-off-by: Tom Rini <trini@ti.com>
---
 drivers/block/pata_bfin.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

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;