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

Commit 185a16b6 authored by Andrew Lunn's avatar Andrew Lunn Committed by David S. Miller
Browse files

net: phy: mdio-gpio: remove support for phy mask



This is not needed any more by devices using platform data, so remove
it.

Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c1b3eb04
Loading
Loading
Loading
Loading
+0 −4
Original line number Original line Diff line number Diff line
@@ -162,13 +162,9 @@ static struct mii_bus *mdio_gpio_bus_init(struct device *dev,


	new_bus->name = "GPIO Bitbanged MDIO";
	new_bus->name = "GPIO Bitbanged MDIO";


	new_bus->phy_mask = pdata->phy_mask;
	memcpy(new_bus->irq, pdata->irqs, sizeof(new_bus->irq));
	memcpy(new_bus->irq, pdata->irqs, sizeof(new_bus->irq));
	new_bus->parent = dev;
	new_bus->parent = dev;


	if (new_bus->phy_mask == ~0)
		goto out_free_bus;

	for (i = 0; i < PHY_MAX_ADDR; i++)
	for (i = 0; i < PHY_MAX_ADDR; i++)
		if (!new_bus->irq[i])
		if (!new_bus->irq[i])
			new_bus->irq[i] = PHY_POLL;
			new_bus->irq[i] = PHY_POLL;
+0 −1
Original line number Original line Diff line number Diff line
@@ -23,7 +23,6 @@ struct mdio_gpio_platform_data {
	bool mdio_active_low;
	bool mdio_active_low;
	bool mdo_active_low;
	bool mdo_active_low;


	u32 phy_mask;
	int irqs[PHY_MAX_ADDR];
	int irqs[PHY_MAX_ADDR];
};
};