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: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
9e4d60938a
commit
a3283e2576
@ -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)
|
|||||||
|
|
||||||
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 {
|
|||||||
|
|
||||||
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. */
|
||||||
|
Loading…
Reference in New Issue
Block a user