Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb732e9a authored by Brad Mouring's avatar Brad Mouring Committed by David S. Miller
Browse files

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: default avatarBrad Mouring <brad.mouring@ni.com>
Suggested-by: default avatarAndrew Lunn <andrew@lunn.ch>
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 739de9a1
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -566,7 +566,7 @@ static int macb_mii_init(struct macb *bp)
{
	struct macb_platform_data *pdata;
	struct device_node *np;
	int err, i;
	int err;

	/* Enable management port */
	macb_writel(bp, NCR, MACB_BIT(MPE));
@@ -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;