Browse Source

net: phy: mdio-gpio: Remove support for IRQs in platform data

No current devices use IRQs in platform data, so remove support for
it. The MDIO core will also initialise the new bus such that all
addresses are polled, so remove the unneeded re-initialisation.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Andrew Lunn 7 years ago
parent
commit
68abb4f25d
2 changed files with 0 additions and 9 deletions
  1. 0 7
      drivers/net/phy/mdio-gpio.c
  2. 0 2
      include/linux/platform_data/mdio-gpio.h

+ 0 - 7
drivers/net/phy/mdio-gpio.c

@@ -130,7 +130,6 @@ static struct mii_bus *mdio_gpio_bus_init(struct device *dev,
 {
 {
 	struct mii_bus *new_bus;
 	struct mii_bus *new_bus;
 	struct mdio_gpio_info *bitbang;
 	struct mdio_gpio_info *bitbang;
-	int i;
 	int mdc, mdio, mdo;
 	int mdc, mdio, mdo;
 	unsigned long mdc_flags = GPIOF_OUT_INIT_LOW;
 	unsigned long mdc_flags = GPIOF_OUT_INIT_LOW;
 	unsigned long mdio_flags = GPIOF_DIR_IN;
 	unsigned long mdio_flags = GPIOF_DIR_IN;
@@ -161,14 +160,8 @@ static struct mii_bus *mdio_gpio_bus_init(struct device *dev,
 		goto out;
 		goto out;
 
 
 	new_bus->name = "GPIO Bitbanged MDIO";
 	new_bus->name = "GPIO Bitbanged MDIO";
-
-	memcpy(new_bus->irq, pdata->irqs, sizeof(new_bus->irq));
 	new_bus->parent = dev;
 	new_bus->parent = dev;
 
 
-	for (i = 0; i < PHY_MAX_ADDR; i++)
-		if (!new_bus->irq[i])
-			new_bus->irq[i] = PHY_POLL;
-
 	if (bus_id != -1)
 	if (bus_id != -1)
 		snprintf(new_bus->id, MII_BUS_ID_SIZE, "gpio-%x", bus_id);
 		snprintf(new_bus->id, MII_BUS_ID_SIZE, "gpio-%x", bus_id);
 	else
 	else

+ 0 - 2
include/linux/platform_data/mdio-gpio.h

@@ -22,8 +22,6 @@ struct mdio_gpio_platform_data {
 	bool mdc_active_low;
 	bool mdc_active_low;
 	bool mdio_active_low;
 	bool mdio_active_low;
 	bool mdo_active_low;
 	bool mdo_active_low;
-
-	int irqs[PHY_MAX_ADDR];
 };
 };
 
 
 #endif /* __LINUX_MDIO_GPIO_H */
 #endif /* __LINUX_MDIO_GPIO_H */