aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/pic32_eth.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/pic32_eth.c')
-rw-r--r--drivers/net/pic32_eth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/pic32_eth.c b/drivers/net/pic32_eth.c
index 94c296e8f4..9eba55affb 100644
--- a/drivers/net/pic32_eth.c
+++ b/drivers/net/pic32_eth.c
@@ -326,7 +326,7 @@ static void pic32_rx_desc_init(struct pic32eth_dev *priv)
static int pic32_eth_start(struct udevice *dev)
{
- struct eth_pdata *pdata = dev_get_platdata(dev);
+ struct eth_pdata *pdata = dev_get_plat(dev);
struct pic32eth_dev *priv = dev_get_priv(dev);
/* controller */
@@ -531,7 +531,7 @@ static const struct eth_ops pic32_eth_ops = {
static int pic32_eth_probe(struct udevice *dev)
{
- struct eth_pdata *pdata = dev_get_platdata(dev);
+ struct eth_pdata *pdata = dev_get_plat(dev);
struct pic32eth_dev *priv = dev_get_priv(dev);
const char *phy_mode;
void __iomem *iobase;