net: phy: smsc: use device_property_present in smsc_phy_probe
Subsystems (3)
Heiner Kallweit
maintainerPATCH 1/1 net: phy: smsc: use device_property_present in smsc_phy_probe
Use unified device property API.
Signed-off-by Heiner Kallweit <[email protected]>
--- drivers/net/phy/smsc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/phy/smsc.c +1 -2
@@ -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
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.
Signed-off-by Heiner Kallweit <[email protected]>--- 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