summaryrefslogtreecommitdiff
path: root/drivers/net/macb.c
diff options
context:
space:
mode:
authorMarek BehĂșn <marek.behun@nic.cz>2022-04-07 00:33:03 +0200
committerRamon Fried <ramon@neureality.ai>2022-04-10 08:44:13 +0300
commitffb0f6f488b9eee2822c3c691778a26e1590694c (patch)
treef46ecb79f66b021439aef2838b8359d9e63b5cf7 /drivers/net/macb.c
parent6706d7dcbee15ac41f3ddb50b31ff96d16567883 (diff)
downloadu-boot-ffb0f6f488b9eee2822c3c691778a26e1590694c.tar.gz
u-boot-ffb0f6f488b9eee2822c3c691778a26e1590694c.tar.bz2
u-boot-ffb0f6f488b9eee2822c3c691778a26e1590694c.zip
treewide: Rename PHY_INTERFACE_MODE_NONE to PHY_INTERFACE_MODE_NA
Rename constant PHY_INTERFACE_MODE_NONE to PHY_INTERFACE_MODE_NA to make it compatible with Linux' naming. Signed-off-by: Marek BehĂșn <marek.behun@nic.cz> Reviewed-by: Stefan Roese <sr@denx.de> Reviewed-by: Ramon Fried <rfried.dev@gmail.com> Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Diffstat (limited to 'drivers/net/macb.c')
-rw-r--r--drivers/net/macb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/macb.c b/drivers/net/macb.c
index 317b380e8f..e02a57b411 100644
--- a/drivers/net/macb.c
+++ b/drivers/net/macb.c
@@ -1363,7 +1363,7 @@ static int macb_eth_probe(struct udevice *dev)
int ret;
macb->phy_interface = dev_read_phy_mode(dev);
- if (macb->phy_interface == PHY_INTERFACE_MODE_NONE)
+ if (macb->phy_interface == PHY_INTERFACE_MODE_NA)
return -EINVAL;
/* Read phyaddr from DT */