net: phy: mdio-gpio: Remove reset function
authorAndrew Lunn <andrew@lunn.ch>
Wed, 18 Apr 2018 23:02:50 +0000 (01:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Apr 2018 19:59:10 +0000 (15:59 -0400)
The platform data can contain a function to call to reset
the bit banging interface. It is not used, 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 369f5f3..570b87b 100644 (file)
@@ -141,7 +141,6 @@ static struct mii_bus *mdio_gpio_bus_init(struct device *dev,
                goto out;
 
        bitbang->ctrl.ops = &mdio_gpio_ops;
-       bitbang->ctrl.reset = pdata->reset;
        mdc = pdata->mdc;
        bitbang->mdc = gpio_to_desc(mdc);
        if (pdata->mdc_active_low)
index 11f00cd..6e8f01a 100644 (file)
@@ -26,8 +26,6 @@ struct mdio_gpio_platform_data {
        u32 phy_mask;
        u32 phy_ignore_ta_mask;
        int irqs[PHY_MAX_ADDR];
-       /* reset callback */
-       int (*reset)(struct mii_bus *bus);
 };
 
 #endif /* __LINUX_MDIO_GPIO_H */