]> git.baikalelectronics.ru Git - kernel.git/commitdiff
r8169: remove remaining call to mdiobus_unregister
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 16 May 2020 22:05:08 +0000 (00:05 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 May 2020 22:20:34 +0000 (15:20 -0700)
After having switched to devm_mdiobus_register() also this remaining
call to mdiobus_unregister() can be removed.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169_main.c

index 97a7e27fff16708ddb8071b2389f7445217d5590..e35820c72264af64cfa7507bd159fa2fc7e7d71e 100644 (file)
@@ -4990,7 +4990,6 @@ static void rtl_remove_one(struct pci_dev *pdev)
        netif_napi_del(&tp->napi);
 
        unregister_netdev(dev);
-       mdiobus_unregister(tp->phydev->mdio.bus);
 
        rtl_release_firmware(tp);