[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180312171001.129209-3-brad.mouring@ni.com>
Date: Mon, 12 Mar 2018 12:09:59 -0500
From: Brad Mouring <brad.mouring@...com>
To: Nicolas Ferre <nicolas.ferre@...rochip.com>,
Rob Herring <robh+dt@...nel.org>,
"David S . Miller" <davem@...emloft.net>,
"Michael Grzeschik" <m.grzeschik@...gutronix.de>,
Andrew Lunn <andrew@...n.ch>
CC: Mark Rutland <mark.rutland@....com>, <netdev@...r.kernel.org>,
"Julia Cartwright" <julia@...com>, <devicetree@...r.kernel.org>,
Brad Mouring <brad.mouring@...com>
Subject: [PATCH v3 net-next 2/4] net: macb: Remove redundant poll irq assignment
In phy_device's general probe, this device will already be set for
phy register polling, rendering this code redundant.
Signed-off-by: Brad Mouring <brad.mouring@...com>
Suggested-by: Andrew Lunn <andrew@...n.ch>
---
drivers/net/ethernet/cadence/macb_main.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c
index 9b6195fbbf8e..db1dc301bed3 100644
--- a/drivers/net/ethernet/cadence/macb_main.c
+++ b/drivers/net/ethernet/cadence/macb_main.c
@@ -593,9 +593,6 @@ static int macb_mii_init(struct macb *bp)
if (np) {
err = of_mdiobus_register(bp->mii_bus, np);
} else {
- for (i = 0; i < PHY_MAX_ADDR; i++)
- bp->mii_bus->irq[i] = PHY_POLL;
-
if (pdata)
bp->mii_bus->phy_mask = pdata->phy_mask;
--
2.16.2
Powered by blists - more mailing lists