diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2023-03-08 21:34:13 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-03-13 16:13:59 -0700 |
commit | 90c7dd32652bcfcc7716c762bc095a7d49ad85dd (patch) | |
tree | f1cd920bd5910452dc2d0dce463048a25b492555 | |
parent | ad4bf5f2406f6a2e29266bbad74e18f0d955ac4c (diff) | |
download | linux-stable-90c7dd32652bcfcc7716c762bc095a7d49ad85dd.tar.gz linux-stable-90c7dd32652bcfcc7716c762bc095a7d49ad85dd.tar.bz2 linux-stable-90c7dd32652bcfcc7716c762bc095a7d49ad85dd.zip |
net: phy: smsc: use device_property_present in smsc_phy_probe
Use unified device property API.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/a969f012-1d3b-7a36-51cf-89a5f8f15a9b@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r-- | drivers/net/phy/smsc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/phy/smsc.c b/drivers/net/phy/smsc.c index ac951d67edcc..9cfaccce1241 100644 --- a/drivers/net/phy/smsc.c +++ b/drivers/net/phy/smsc.c @@ -269,7 +269,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; @@ -279,7 +278,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; |