Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Andrew Lunn and committed by
David S. Miller
a3283e25 9e4d6093

-11
-9
drivers/net/phy/mdio-bitbang.c
··· 205 205 return 0; 206 206 } 207 207 208 - static int mdiobb_reset(struct mii_bus *bus) 209 - { 210 - struct mdiobb_ctrl *ctrl = bus->priv; 211 - if (ctrl->reset) 212 - ctrl->reset(bus); 213 - return 0; 214 - } 215 - 216 208 struct mii_bus *alloc_mdio_bitbang(struct mdiobb_ctrl *ctrl) 217 209 { 218 210 struct mii_bus *bus; ··· 217 225 218 226 bus->read = mdiobb_read; 219 227 bus->write = mdiobb_write; 220 - bus->reset = mdiobb_reset; 221 228 bus->priv = ctrl; 222 229 223 230 return bus;
-2
include/linux/mdio-bitbang.h
··· 33 33 34 34 struct mdiobb_ctrl { 35 35 const struct mdiobb_ops *ops; 36 - /* reset callback */ 37 - int (*reset)(struct mii_bus *bus); 38 36 }; 39 37 40 38 /* The returned bus is not yet registered with the phy layer. */