Skip to content

Commit cb732e9

Browse files
Brad Mouringdavem330
authored andcommitted
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 <[email protected]> Suggested-by: Andrew Lunn <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 739de9a commit cb732e9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/net/ethernet/cadence/macb_main.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ static int macb_mii_init(struct macb *bp)
566566
{
567567
struct macb_platform_data *pdata;
568568
struct device_node *np;
569-
int err, i;
569+
int err;
570570

571571
/* Enable management port */
572572
macb_writel(bp, NCR, MACB_BIT(MPE));
@@ -593,9 +593,6 @@ static int macb_mii_init(struct macb *bp)
593593
if (np) {
594594
err = of_mdiobus_register(bp->mii_bus, np);
595595
} else {
596-
for (i = 0; i < PHY_MAX_ADDR; i++)
597-
bp->mii_bus->irq[i] = PHY_POLL;
598-
599596
if (pdata)
600597
bp->mii_bus->phy_mask = pdata->phy_mask;
601598

0 commit comments

Comments
 (0)