mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 06:08:22 +00:00
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@ni.com> Suggested-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
739de9a156
commit
cb732e9a26
1 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue