OSDN Git Service

net: phy: mdio-gpio: remove support for phy mask
authorAndrew Lunn <andrew@lunn.ch>
Wed, 18 Apr 2018 23:02:53 +0000 (01:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Apr 2018 19:59:11 +0000 (15:59 -0400)
This is not needed any more by devices using platform data, so remove
it.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio-gpio.c
include/linux/platform_data/mdio-gpio.h

index 28ad9ca..676ba0d 100644 (file)
@@ -162,13 +162,9 @@ static struct mii_bus *mdio_gpio_bus_init(struct device *dev,
 
        new_bus->name = "GPIO Bitbanged MDIO";
 
-       new_bus->phy_mask = pdata->phy_mask;
        memcpy(new_bus->irq, pdata->irqs, sizeof(new_bus->irq));
        new_bus->parent = dev;
 
-       if (new_bus->phy_mask == ~0)
-               goto out_free_bus;
-
        for (i = 0; i < PHY_MAX_ADDR; i++)
                if (!new_bus->irq[i])
                        new_bus->irq[i] = PHY_POLL;
index b8f914a..7d55dfe 100644 (file)
@@ -23,7 +23,6 @@ struct mdio_gpio_platform_data {
        bool mdio_active_low;
        bool mdo_active_low;
 
-       u32 phy_mask;
        int irqs[PHY_MAX_ADDR];
 };