Message ID | a969f012-1d3b-7a36-51cf-89a5f8f15a9b@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 90c7dd32652bcfcc7716c762bc095a7d49ad85dd |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net-next] net: phy: smsc: use device_property_present in smsc_phy_probe | expand |
Hello: This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <kuba@kernel.org>: On Wed, 8 Mar 2023 21:34:13 +0100 you wrote: > Use unified device property API. > > Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> > --- > 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!
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;
Use unified device property API. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> --- drivers/net/phy/smsc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)