diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/eth-uclass.c | 10 | ||||
-rw-r--r-- | net/mdio-mux-uclass.c | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/net/eth-uclass.c b/net/eth-uclass.c index 9525adba00..ca083b442c 100644 --- a/net/eth-uclass.c +++ b/net/eth-uclass.c @@ -149,7 +149,7 @@ unsigned char *eth_get_ethaddr(void) struct eth_pdata *pdata; if (eth_get_dev()) { - pdata = eth_get_dev()->platdata; + pdata = eth_get_dev()->plat; return pdata->enetaddr; } @@ -203,7 +203,7 @@ static int eth_write_hwaddr(struct udevice *dev) /* seq is valid since the device is active */ if (eth_get_ops(dev)->write_hwaddr && !eth_mac_skip(dev->seq)) { - pdata = dev->platdata; + pdata = dev->plat; if (!is_valid_ethaddr(pdata->enetaddr)) { printf("\nError: %s address %pM illegal value\n", dev->name, pdata->enetaddr); @@ -237,7 +237,7 @@ static int on_ethaddr(const char *name, const char *value, enum env_op op, retval = uclass_find_device_by_seq(UCLASS_ETH, index, false, &dev); if (!retval) { - struct eth_pdata *pdata = dev->platdata; + struct eth_pdata *pdata = dev->plat; switch (op) { case env_op_create: case env_op_overwrite: @@ -506,7 +506,7 @@ static bool eth_dev_get_mac_address(struct udevice *dev, u8 mac[ARP_HLEN]) static int eth_post_probe(struct udevice *dev) { struct eth_device_priv *priv = dev->uclass_priv; - struct eth_pdata *pdata = dev->platdata; + struct eth_pdata *pdata = dev->plat; unsigned char env_enetaddr[ARP_HLEN]; char *source = "DT"; @@ -583,7 +583,7 @@ static int eth_post_probe(struct udevice *dev) static int eth_pre_remove(struct udevice *dev) { - struct eth_pdata *pdata = dev->platdata; + struct eth_pdata *pdata = dev->plat; eth_get_ops(dev)->stop(dev); diff --git a/net/mdio-mux-uclass.c b/net/mdio-mux-uclass.c index 3fb4184099..5f38f9fde4 100644 --- a/net/mdio-mux-uclass.c +++ b/net/mdio-mux-uclass.c @@ -65,7 +65,7 @@ static int mmux_change_sel(struct udevice *ch, bool sel) struct udevice *mux = ch->parent; struct mdio_mux_perdev_priv *priv = dev_get_uclass_priv(mux); struct mdio_mux_ops *ops = mdio_mux_get_ops(mux); - struct mdio_mux_ch_data *ch_data = dev_get_parent_platdata(ch); + struct mdio_mux_ch_data *ch_data = dev_get_parent_plat(ch); int err = 0; if (sel) { @@ -147,7 +147,7 @@ static int mmux_reset(struct udevice *ch) /* Picks up the mux selection value for each child */ static int dm_mdio_mux_child_post_bind(struct udevice *ch) { - struct mdio_mux_ch_data *ch_data = dev_get_parent_platdata(ch); + struct mdio_mux_ch_data *ch_data = dev_get_parent_plat(ch); ch_data->sel = dev_read_u32_default(ch, "reg", MDIO_MUX_SELECT_NONE); @@ -229,5 +229,5 @@ UCLASS_DRIVER(mdio_mux) = { .post_bind = dm_mdio_mux_post_bind, .post_probe = dm_mdio_mux_post_probe, .per_device_auto = sizeof(struct mdio_mux_perdev_priv), - .per_child_platdata_auto = sizeof(struct mdio_mux_ch_data), + .per_child_plat_auto = sizeof(struct mdio_mux_ch_data), }; |