[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <a969f012-1d3b-7a36-51cf-89a5f8f15a9b@gmail.com>
Date: Wed, 8 Mar 2023 21:34:13 +0100
From: Heiner Kallweit <hkallweit1@...il.com>
To: Russell King - ARM Linux <linux@...linux.org.uk>,
Andrew Lunn <andrew@...n.ch>, Paolo Abeni <pabeni@...hat.com>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
David Miller <davem@...emloft.net>
Cc: "netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: [PATCH net-next] net: phy: smsc: use device_property_present in
smsc_phy_probe
Use unified device property API.
Signed-off-by: Heiner Kallweit <hkallweit1@...il.com>
---
drivers/net/phy/smsc.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/net/phy/smsc.c b/drivers/net/phy/smsc.c
index 630104c16..1c2808f74 100644
--- a/drivers/net/phy/smsc.c
+++ b/drivers/net/phy/smsc.c
@@ -272,7 +272,6 @@ static void smsc_get_stats(struct phy_device *phydev,
static int smsc_phy_probe(struct phy_device *phydev)
{
struct device *dev = &phydev->mdio.dev;
- struct device_node *of_node = dev->of_node;
struct smsc_phy_priv *priv;
struct clk *refclk;
@@ -282,7 +281,7 @@ static int smsc_phy_probe(struct phy_device *phydev)
priv->energy_enable = true;
- if (of_property_read_bool(of_node, "smsc,disable-energy-detect"))
+ if (device_property_present(dev, "smsc,disable-energy-detect"))
priv->energy_enable = false;
phydev->priv = priv;
--
2.39.2
Powered by blists - more mailing lists