]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "drivers/net/phy/mdio-bitbang.c: Call mdiobus_unregister before mdiobus_free"
authorDavid S. Miller <davem@davemloft.net>
Thu, 15 Nov 2012 03:32:15 +0000 (22:32 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Nov 2012 03:32:15 +0000 (22:32 -0500)
commita17cbcfc801141b8f88b425f5017cec93f04122d
tree95bb41b7c8baa0332461c2e4a4b3400fee39934b
parent295438877c8dac1a367aa10783a4b74fb26fd60a
Revert "drivers/net/phy/mdio-bitbang.c: Call mdiobus_unregister before mdiobus_free"

This reverts commit b3fef60bcd4cf1988b713627ca6ebc1051510526.

As pointed out by Ben Hutchings, this change is not correct.

mdiobus_unregister() can't be called if the bus isn't registered yet,
however this change can result in situations which cause that to
happen.

Part of the confusion here revolves around the fact that the
callers of this module control registration/unregistration,
rather than the module itself.

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio-bitbang.c