[U-Boot] [PATCH 07/26] net: emaclite: Use unsigned long for baseaddr
Michal Simek
monstr at monstr.eu
Tue Sep 13 09:10:02 CEST 2011
Baseaddr should be unsigned long.
Signed-off-by: Michal Simek <monstr at monstr.eu>
---
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.
--
1.5.5.6
More information about the U-Boot
mailing list