mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-22 20:58:22 +00:00
treewide: remove (phys_addr_t) casts from devfdt_get_addr()
This cast is unneeded. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
parent
3c12c62ba5
commit
6f25e274da
5 changed files with 5 additions and 5 deletions
|
@ -1534,7 +1534,7 @@ static int fecmxc_ofdata_to_platdata(struct udevice *dev)
|
||||||
struct fec_priv *priv = dev_get_priv(dev);
|
struct fec_priv *priv = dev_get_priv(dev);
|
||||||
const char *phy_mode;
|
const char *phy_mode;
|
||||||
|
|
||||||
pdata->iobase = (phys_addr_t)devfdt_get_addr(dev);
|
pdata->iobase = devfdt_get_addr(dev);
|
||||||
priv->eth = (struct ethernet_regs *)pdata->iobase;
|
priv->eth = (struct ethernet_regs *)pdata->iobase;
|
||||||
|
|
||||||
pdata->phy_interface = -1;
|
pdata->phy_interface = -1;
|
||||||
|
|
|
@ -570,7 +570,7 @@ static int mcdmafec_ofdata_to_platdata(struct udevice *dev)
|
||||||
struct eth_pdata *pdata = dev_get_platdata(dev);
|
struct eth_pdata *pdata = dev_get_platdata(dev);
|
||||||
const u32 *val;
|
const u32 *val;
|
||||||
|
|
||||||
pdata->iobase = (phys_addr_t)devfdt_get_addr(dev);
|
pdata->iobase = devfdt_get_addr(dev);
|
||||||
/* Default to 10Mbit/s */
|
/* Default to 10Mbit/s */
|
||||||
pdata->max_speed = 10;
|
pdata->max_speed = 10;
|
||||||
|
|
||||||
|
|
|
@ -589,7 +589,7 @@ static int mcffec_ofdata_to_platdata(struct udevice *dev)
|
||||||
struct eth_pdata *pdata = dev_get_platdata(dev);
|
struct eth_pdata *pdata = dev_get_platdata(dev);
|
||||||
const u32 *val;
|
const u32 *val;
|
||||||
|
|
||||||
pdata->iobase = (phys_addr_t)devfdt_get_addr(dev);
|
pdata->iobase = devfdt_get_addr(dev);
|
||||||
/* Default to 10Mbit/s */
|
/* Default to 10Mbit/s */
|
||||||
pdata->max_speed = 10;
|
pdata->max_speed = 10;
|
||||||
|
|
||||||
|
|
|
@ -722,7 +722,7 @@ static int axi_emac_ofdata_to_platdata(struct udevice *dev)
|
||||||
int offset = 0;
|
int offset = 0;
|
||||||
const char *phy_mode;
|
const char *phy_mode;
|
||||||
|
|
||||||
pdata->iobase = (phys_addr_t)devfdt_get_addr(dev);
|
pdata->iobase = devfdt_get_addr(dev);
|
||||||
priv->iobase = (struct axi_regs *)pdata->iobase;
|
priv->iobase = (struct axi_regs *)pdata->iobase;
|
||||||
|
|
||||||
offset = fdtdec_lookup_phandle(gd->fdt_blob, node,
|
offset = fdtdec_lookup_phandle(gd->fdt_blob, node,
|
||||||
|
|
|
@ -599,7 +599,7 @@ static int emaclite_ofdata_to_platdata(struct udevice *dev)
|
||||||
struct xemaclite *emaclite = dev_get_priv(dev);
|
struct xemaclite *emaclite = dev_get_priv(dev);
|
||||||
int offset = 0;
|
int offset = 0;
|
||||||
|
|
||||||
pdata->iobase = (phys_addr_t)devfdt_get_addr(dev);
|
pdata->iobase = devfdt_get_addr(dev);
|
||||||
emaclite->regs = (struct emaclite_regs *)ioremap_nocache(pdata->iobase,
|
emaclite->regs = (struct emaclite_regs *)ioremap_nocache(pdata->iobase,
|
||||||
0x10000);
|
0x10000);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue