]> git.baikalelectronics.ru Git - kernel.git/commit
phy: add phy_device_remove()
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 24 Sep 2015 19:36:28 +0000 (20:36 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Sep 2015 06:04:53 +0000 (23:04 -0700)
commit4462c6c5e7df4e483564251923972b7f31bbe0d2
treea9625f15c9946760d6b98f2637526001814c97df
parentb4606002c8132eec8bcf8630d34b695b03e49d75
phy: add phy_device_remove()

Add a phy_device_remove() function to complement phy_device_register(),
which undoes the effects of phy_device_register() by removing the phy
device from visibility, but not freeing it.

This allows these details to be moved out of the mdio bus code into
the phy code where this action belongs.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/gianfar.c
drivers/net/phy/mdio_bus.c
drivers/net/phy/phy_device.c
include/linux/phy.h