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

Commit aa842478 authored by Shaohui Xie's avatar Shaohui Xie Committed by David S. Miller
Browse files

net/fsl: remove irq assignment from xgmac_mdio



Which is wrong and not used, so no extra space needed by
mdiobus_alloc_size(), use mdiobus_alloc() instead.

Signed-off-by: default avatarShaohui Xie <Shaohui.Xie@freescale.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cef27f97
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -187,14 +187,13 @@ static int xgmac_mdio_probe(struct platform_device *pdev)
		return ret;
		return ret;
	}
	}


	bus = mdiobus_alloc_size(PHY_MAX_ADDR * sizeof(int));
	bus = mdiobus_alloc();
	if (!bus)
	if (!bus)
		return -ENOMEM;
		return -ENOMEM;


	bus->name = "Freescale XGMAC MDIO Bus";
	bus->name = "Freescale XGMAC MDIO Bus";
	bus->read = xgmac_mdio_read;
	bus->read = xgmac_mdio_read;
	bus->write = xgmac_mdio_write;
	bus->write = xgmac_mdio_write;
	bus->irq = bus->priv;
	bus->parent = &pdev->dev;
	bus->parent = &pdev->dev;
	snprintf(bus->id, MII_BUS_ID_SIZE, "%llx", (unsigned long long)res.start);
	snprintf(bus->id, MII_BUS_ID_SIZE, "%llx", (unsigned long long)res.start);