Skip to contentSkip to conversation

net: phy: smsc: use device_property_present in smsc_phy_probe

PATCH Applied Heiner Kallweit 2 participants 2 messages Mar 8, 2023 – Mar 13, 2023

Subsystems (3)
lore
Share & tools
lore

Heiner Kallweit

author maintainer
#0 lore raw

PATCH 1/1 net: phy: smsc: use device_property_present in smsc_phy_probe

Use unified device property API.

---
 drivers/net/phy/smsc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/phy/smsc.c +1 -2
index 630104c16..1c2808f74 100644
@@ -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;
Signature · 1 line
2.39.2
#1 lore raw
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 6 lines · On Wed, 8 Mar 2023 21:34:13 +0100 you wrote:

Use unified device property API.

---
 drivers/net/phy/smsc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Here is the summary with links:
- [net-next] net: phy: smsc: use device_property_present in smsc_phy_probe

    https://git.kernel.org/netdev/net-next/c/90c7dd32652b

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html