aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2015-01-14 15:44:21 +0100
committerMichal Simek <michal.simek@xilinx.com>2015-01-21 10:30:21 +0100
commit5840537879d93814f681d45ccf26d8b171f80acf (patch)
treeec79e211d6c2ce7be9a4fc7287b5f96f4fd7c617 /drivers
parent768f6096f9c389b5ed36bee2957bee16b085fc4a (diff)
downloadu-boot-5840537879d93814f681d45ccf26d8b171f80acf.zip
u-boot-5840537879d93814f681d45ccf26d8b171f80acf.tar.gz
u-boot-5840537879d93814f681d45ccf26d8b171f80acf.tar.bz2
net: gem: Use phys_addr_t instead of int for addresses
Use phys_addr_t for physical address declaration. It is also unsigned type instead of sign. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/zynq_gem.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c
index 3cadd23..430e228 100644
--- a/drivers/net/zynq_gem.c
+++ b/drivers/net/zynq_gem.c
@@ -489,7 +489,8 @@ static int zynq_gem_miiphy_write(const char *devname, uchar addr,
return phywrite(dev, addr, reg, val);
}
-int zynq_gem_initialize(bd_t *bis, int base_addr, int phy_addr, u32 emio)
+int zynq_gem_initialize(bd_t *bis, phys_addr_t base_addr,
+ int phy_addr, u32 emio)
{
struct eth_device *dev;
struct zynq_gem_priv *priv;
@@ -521,7 +522,7 @@ int zynq_gem_initialize(bd_t *bis, int base_addr, int phy_addr, u32 emio)
priv->phyaddr = phy_addr;
priv->emio = emio;
- sprintf(dev->name, "Gem.%x", base_addr);
+ sprintf(dev->name, "Gem.%lx", base_addr);
dev->iobase = base_addr;