aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/bcm6348-eth.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/bcm6348-eth.c')
-rw-r--r--drivers/net/bcm6348-eth.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/bcm6348-eth.c b/drivers/net/bcm6348-eth.c
index 9ddc0f938f..aad7b61213 100644
--- a/drivers/net/bcm6348-eth.c
+++ b/drivers/net/bcm6348-eth.c
@@ -264,7 +264,7 @@ static void bcm6348_eth_stop(struct udevice *dev)
static int bcm6348_eth_write_hwaddr(struct udevice *dev)
{
- struct eth_pdata *pdata = dev_get_platdata(dev);
+ struct eth_pdata *pdata = dev_get_plat(dev);
struct bcm6348_eth_priv *priv = dev_get_priv(dev);
bool running = false;
@@ -380,7 +380,7 @@ static int bcm6348_mdio_init(const char *name, void __iomem *base)
static int bcm6348_phy_init(struct udevice *dev)
{
- struct eth_pdata *pdata = dev_get_platdata(dev);
+ struct eth_pdata *pdata = dev_get_plat(dev);
struct bcm6348_eth_priv *priv = dev_get_priv(dev);
struct mii_dev *bus;
@@ -412,7 +412,7 @@ static int bcm6348_phy_init(struct udevice *dev)
static int bcm6348_eth_probe(struct udevice *dev)
{
- struct eth_pdata *pdata = dev_get_platdata(dev);
+ struct eth_pdata *pdata = dev_get_plat(dev);
struct bcm6348_eth_priv *priv = dev_get_priv(dev);
struct ofnode_phandle_args phy;
const char *phy_mode;
@@ -533,7 +533,7 @@ U_BOOT_DRIVER(bcm6348_eth) = {
.id = UCLASS_ETH,
.of_match = bcm6348_eth_ids,
.ops = &bcm6348_eth_ops,
- .platdata_auto_alloc_size = sizeof(struct eth_pdata),
- .priv_auto_alloc_size = sizeof(struct bcm6348_eth_priv),
+ .plat_auto = sizeof(struct eth_pdata),
+ .priv_auto = sizeof(struct bcm6348_eth_priv),
.probe = bcm6348_eth_probe,
};