The existence of the DT port node is the first thing checked
at probe time, and probing won't continue if the node is missing.

Signed-off-by: Claudiu Manoil <claudiu.man...@nxp.com>
---
 drivers/net/ethernet/freescale/enetc/enetc_pf.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/net/ethernet/freescale/enetc/enetc_pf.c 
b/drivers/net/ethernet/freescale/enetc/enetc_pf.c
index 9e9bb6b97c41..ebf2996ebe69 100644
--- a/drivers/net/ethernet/freescale/enetc/enetc_pf.c
+++ b/drivers/net/ethernet/freescale/enetc/enetc_pf.c
@@ -754,11 +754,6 @@ static int enetc_of_get_phy(struct enetc_ndev_priv *priv)
        int phy_mode;
        int err;
 
-       if (!np) {
-               dev_err(priv->dev, "missing ENETC port node\n");
-               return -ENODEV;
-       }
-
        priv->phy_node = of_parse_phandle(np, "phy-handle", 0);
        if (!priv->phy_node) {
                if (!of_phy_is_fixed_link(np)) {
-- 
2.17.1

Reply via email to