Commit a3283e25 authored by Andrew Lunn's avatar Andrew Lunn Committed by David S. Miller

net: phy: mdio-bitbang: Remove reset support

The mdio-gpio driver was the only user of the interface reset option.
Since it no longer uses it, remove it from the bit banging code.
Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9e4d6093
...@@ -205,14 +205,6 @@ static int mdiobb_write(struct mii_bus *bus, int phy, int reg, u16 val) ...@@ -205,14 +205,6 @@ static int mdiobb_write(struct mii_bus *bus, int phy, int reg, u16 val)
return 0; return 0;
} }
static int mdiobb_reset(struct mii_bus *bus)
{
struct mdiobb_ctrl *ctrl = bus->priv;
if (ctrl->reset)
ctrl->reset(bus);
return 0;
}
struct mii_bus *alloc_mdio_bitbang(struct mdiobb_ctrl *ctrl) struct mii_bus *alloc_mdio_bitbang(struct mdiobb_ctrl *ctrl)
{ {
struct mii_bus *bus; struct mii_bus *bus;
...@@ -225,7 +217,6 @@ struct mii_bus *alloc_mdio_bitbang(struct mdiobb_ctrl *ctrl) ...@@ -225,7 +217,6 @@ struct mii_bus *alloc_mdio_bitbang(struct mdiobb_ctrl *ctrl)
bus->read = mdiobb_read; bus->read = mdiobb_read;
bus->write = mdiobb_write; bus->write = mdiobb_write;
bus->reset = mdiobb_reset;
bus->priv = ctrl; bus->priv = ctrl;
return bus; return bus;
......
...@@ -33,8 +33,6 @@ struct mdiobb_ops { ...@@ -33,8 +33,6 @@ struct mdiobb_ops {
struct mdiobb_ctrl { struct mdiobb_ctrl {
const struct mdiobb_ops *ops; const struct mdiobb_ops *ops;
/* reset callback */
int (*reset)(struct mii_bus *bus);
}; };
/* The returned bus is not yet registered with the phy layer. */ /* The returned bus is not yet registered with the phy layer. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment