From patchwork Sat Sep 29 20:51:52 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 188056 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id CAB6D2C00EF for ; Sun, 30 Sep 2012 06:53:03 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A7BB1281B9; Sat, 29 Sep 2012 22:52:59 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xxDl0LQJS3I2; Sat, 29 Sep 2012 22:52:59 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8F97B281E3; Sat, 29 Sep 2012 22:52:46 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5175A281C4 for ; Sat, 29 Sep 2012 22:52:30 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8X2aGcUo-1sx for ; Sat, 29 Sep 2012 22:52:30 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by theia.denx.de (Postfix) with ESMTPS id 5C180281C8 for ; Sat, 29 Sep 2012 22:52:08 +0200 (CEST) Received: by mail-pa0-f44.google.com with SMTP id fb11so3236790pad.3 for ; Sat, 29 Sep 2012 13:52:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=iEHXlimIowYnNNolOO/a0MkfiD6B3Sy+Rl4sXBY9IAc=; b=hybMK/twF1V/WBoFzBctCVTsMQtpgvMRkSU2wRXuAcq2jIsABSdgEruR1fKHSnPTPM 9TF6114n7JXGlTZMiOvEQq46fUmmp5yT28Hkyey3eIUgr6nPq+wWMo3w79aGNfPrkXMY TJXO9E6sCt98bMpCXRjfYgBHOK6GCU/iwmDC50uJT926Ad3JmBFYHbH79G2rpoBLDjgS DPxoT6D+rhEesaQGpKD5ciDyEryHV8NNmycV0uUmIV0UldBX/nUVJPCqhjKPR5eAM5w0 z3Rr00AqHfvsXLmCzHUgDpASYtAkgS6p/7wTYHEwnr20Y7x0vXeo7uK4FYber78HxdL/ 33Bg== Received: by 10.68.193.194 with SMTP id hq2mr30425308pbc.93.1348951928183; Sat, 29 Sep 2012 13:52:08 -0700 (PDT) Received: from localhost.localdomain (ip68-230-54-74.ph.ph.cox.net. [68.230.54.74]) by mx.google.com with ESMTPS id gf8sm7669505pbc.52.2012.09.29.13.52.06 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 29 Sep 2012 13:52:07 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Date: Sat, 29 Sep 2012 13:51:52 -0700 Message-Id: <1348951916-3495-6-git-send-email-trini@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1348951916-3495-1-git-send-email-trini@ti.com> References: <1348951916-3495-1-git-send-email-trini@ti.com> Cc: Sonic Zhang Subject: [U-Boot] [PATCH v1 5/9] pata_bfin: Make sata_{read, write}() comply with X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de These functions take lbaint_t for blkcnt. Signed-off-by: Tom Rini --- drivers/block/pata_bfin.c | 4 ++-- 1 file 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;