net: phy: mdio-gpio: Remove reset function
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>
This commit is contained in:
committed by
David S. Miller
parent
712e5a5ce7
commit
9e4d60938a
@@ -141,7 +141,6 @@ static struct mii_bus *mdio_gpio_bus_init(struct device *dev,
|
|||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
bitbang->ctrl.ops = &mdio_gpio_ops;
|
bitbang->ctrl.ops = &mdio_gpio_ops;
|
||||||
bitbang->ctrl.reset = pdata->reset;
|
|
||||||
mdc = pdata->mdc;
|
mdc = pdata->mdc;
|
||||||
bitbang->mdc = gpio_to_desc(mdc);
|
bitbang->mdc = gpio_to_desc(mdc);
|
||||||
if (pdata->mdc_active_low)
|
if (pdata->mdc_active_low)
|
||||||
|
|||||||
@@ -26,8 +26,6 @@ struct mdio_gpio_platform_data {
|
|||||||
u32 phy_mask;
|
u32 phy_mask;
|
||||||
u32 phy_ignore_ta_mask;
|
u32 phy_ignore_ta_mask;
|
||||||
int irqs[PHY_MAX_ADDR];
|
int irqs[PHY_MAX_ADDR];
|
||||||
/* reset callback */
|
|
||||||
int (*reset)(struct mii_bus *bus);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* __LINUX_MDIO_GPIO_H */
|
#endif /* __LINUX_MDIO_GPIO_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user