Commit 90c7dd32 authored by Heiner Kallweit's avatar Heiner Kallweit Committed by Jakub Kicinski

net: phy: smsc: use device_property_present in smsc_phy_probe

Use unified device property API.
Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/a969f012-1d3b-7a36-51cf-89a5f8f15a9b@gmail.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent ad4bf5f2
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment