Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -205,14 +205,6 @@ static int mdiobb_write(struct mii_bus *bus, int phy, int reg, u16 val)
	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 *bus;
@@ -225,7 +217,6 @@ struct mii_bus *alloc_mdio_bitbang(struct mdiobb_ctrl *ctrl)

	bus->read = mdiobb_read;
	bus->write = mdiobb_write;
	bus->reset = mdiobb_reset;
	bus->priv = ctrl;

	return bus;
+0 −2
Original line number Diff line number Diff line
@@ -33,8 +33,6 @@ struct mdiobb_ops {

struct mdiobb_ctrl {
	const struct mdiobb_ops *ops;
	/* reset callback */
	int (*reset)(struct mii_bus *bus);
};

/* The returned bus is not yet registered with the phy layer. */