]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: ti: am65-cpsw-nuss: Remove dead code
authorVignesh Raghavendra <vigneshr@ti.com>
Mon, 6 Jul 2020 08:06:52 +0000 (13:36 +0530)
committerLokesh Vutla <lokeshvutla@ti.com>
Mon, 13 Jul 2020 15:28:34 +0000 (20:58 +0530)
MDIO node is not referenced further, therefore drop the dead code.

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
drivers/net/ti/am65-cpsw-nuss.c

index 85f3e49c055cc7434c49daf082fa69fadff7b0a2..e8fe875e70bd22e753816f55105858fa378b6044 100644 (file)
@@ -746,13 +746,6 @@ static int am65_cpsw_probe_cpsw(struct udevice *dev)
                goto out;
        }
 
-       node = dev_read_subnode(dev, "mdio");
-       if (!ofnode_valid(node)) {
-               dev_err(dev, "can't find mdio\n");
-               ret = -ENOENT;
-               goto out;
-       }
-
        cpsw_common->bus_freq =
                        dev_read_u32_default(dev, "bus_freq",
                                             AM65_CPSW_MDIO_BUS_FREQ_DEF);