]> git.baikalelectronics.ru Git - kernel.git/commit
usbnet: run unbind() before unregister_netdev()
authorOleksij Rempel <o.rempel@pengutronix.de>
Mon, 7 Jun 2021 08:27:27 +0000 (10:27 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Jun 2021 20:23:02 +0000 (13:23 -0700)
commit635dc77733382bc47ab9c4c5cd349c717197e91a
tree63e8ff315e0f029ab7ffdeb408a53e9322526342
parent030959672733f2e69b7ce325fc3e1626d84e2447
usbnet: run unbind() before unregister_netdev()

unbind() is the proper place to disconnect PHY, but it will fail if
netdev is already unregistered.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/usbnet.c