From patchwork Tue Sep 13 07:10:02 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 114437 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 26748B70B7 for ; Tue, 13 Sep 2011 17:11:45 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3A093282B8; Tue, 13 Sep 2011 09:11:26 +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 1mXQw28P8QNQ; Tue, 13 Sep 2011 09:11:25 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 041E4282C5; Tue, 13 Sep 2011 09:10:57 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CA794280F5 for ; Tue, 13 Sep 2011 09:10:52 +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 bqXvBGYESh57 for ; Tue, 13 Sep 2011 09:10:52 +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-bw0-f44.google.com (mail-bw0-f44.google.com [209.85.214.44]) by theia.denx.de (Postfix) with ESMTPS id E13A328281 for ; Tue, 13 Sep 2011 09:10:37 +0200 (CEST) Received: by mail-bw0-f44.google.com with SMTP id q10so194975bka.3 for ; Tue, 13 Sep 2011 00:10:37 -0700 (PDT) Received: by 10.204.140.213 with SMTP id j21mr1074306bku.325.1315897837666; Tue, 13 Sep 2011 00:10:37 -0700 (PDT) Received: from localhost ([178.23.216.97]) by mx.google.com with ESMTPS id t16sm445782bkv.11.2011.09.13.00.10.36 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 13 Sep 2011 00:10:37 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de Date: Tue, 13 Sep 2011 09:10:02 +0200 Message-Id: <1315897821-23049-8-git-send-email-monstr@monstr.eu> X-Mailer: git-send-email 1.5.5.1 In-Reply-To: <1315897821-23049-7-git-send-email-monstr@monstr.eu> References: <1315897821-23049-1-git-send-email-monstr@monstr.eu> <1315897821-23049-2-git-send-email-monstr@monstr.eu> <1315897821-23049-3-git-send-email-monstr@monstr.eu> <1315897821-23049-4-git-send-email-monstr@monstr.eu> <1315897821-23049-5-git-send-email-monstr@monstr.eu> <1315897821-23049-6-git-send-email-monstr@monstr.eu> <1315897821-23049-7-git-send-email-monstr@monstr.eu> Subject: [U-Boot] [PATCH 07/26] net: emaclite: Use unsigned long for baseaddr X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 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 Baseaddr should be unsigned long. Signed-off-by: Michal Simek --- drivers/net/xilinx_emaclite.c | 4 ++-- include/netdev.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/xilinx_emaclite.c b/drivers/net/xilinx_emaclite.c index 9342476..c4366c2 100644 --- a/drivers/net/xilinx_emaclite.c +++ b/drivers/net/xilinx_emaclite.c @@ -347,7 +347,7 @@ static int emaclite_recv(struct eth_device *dev) } -int xilinx_emaclite_initialize (bd_t *bis, int base_addr) +int xilinx_emaclite_initialize(bd_t *bis, unsigned long base_addr) { struct eth_device *dev; struct xemaclite *emaclite; @@ -371,7 +371,7 @@ int xilinx_emaclite_initialize (bd_t *bis, int base_addr) emaclite->rxpp = 1; #endif - sprintf(dev->name, "Xelite.%x", base_addr); + sprintf(dev->name, "Xelite.%lx", base_addr); dev->iobase = base_addr; dev->init = emaclite_init; diff --git a/include/netdev.h b/include/netdev.h index 96c7b9b..5d78148 100644 --- a/include/netdev.h +++ b/include/netdev.h @@ -94,7 +94,7 @@ int smc911x_initialize(u8 dev_num, int base_addr); int tsi108_eth_initialize(bd_t *bis); int uec_standard_init(bd_t *bis); int uli526x_initialize(bd_t *bis); -int xilinx_emaclite_initialize (bd_t *bis, int base_addr); +int xilinx_emaclite_initialize(bd_t *bis, unsigned long base_addr); /* Boards with PCI network controllers can call this from their board_eth_init() * function to initialize whatever's on board.