From: Michal Simek Date: Wed, 15 Apr 2015 11:31:28 +0000 (+0200) Subject: net: gem: Use correct type for casting X-Git-Tag: v2015.07-rc1~109^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9ce1edc8d0d8d994b09ed01d1ec5815967ad9ac8;p=u-boot net: gem: Use correct type for casting Use phys_addr_t which is used in function prototype in system.h. Signed-off-by: Michal Simek --- diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index 74fda70abe..c723dbb0a6 100644 --- a/drivers/net/zynq_gem.c +++ b/drivers/net/zynq_gem.c @@ -513,7 +513,8 @@ int zynq_gem_initialize(bd_t *bis, phys_addr_t base_addr, /* Align bd_space to 1MB */ bd_space = memalign(1 << MMU_SECTION_SHIFT, BD_SPACE); - mmu_set_region_dcache_behaviour((u32)bd_space, BD_SPACE, DCACHE_OFF); + mmu_set_region_dcache_behaviour((phys_addr_t)bd_space, + BD_SPACE, DCACHE_OFF); /* Initialize the bd spaces for tx and rx bd's */ priv->tx_bd = (struct emac_bd *)bd_space;