kernel: bump 5.4 to 5.4.106
[openwrt/openwrt.git] / target / linux / layerscape / patches-5.4 / 701-net-0237-enetc-Remove-mdio-bus-on-PF-probe-error-path.patch
index 0fa2d0e6e93afd6641c196a64f4014c614eddb07..064621eaeace8f354b95b8e72273dae52da2f4a9 100644 (file)
@@ -48,11 +48,11 @@ Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com>
 
 --- a/drivers/net/ethernet/freescale/enetc/enetc_pf.c
 +++ b/drivers/net/ethernet/freescale/enetc/enetc_pf.c
-@@ -1012,6 +1012,7 @@ err_alloc_si_res:
+@@ -1041,6 +1041,7 @@ err_alloc_si_res:
        si->ndev = NULL;
        free_netdev(ndev);
  err_alloc_netdev:
 +      enetc_mdio_remove(pf);
        enetc_of_put_phy(pf);
+ err_device_disabled:
  err_map_pf_space:
-       enetc_pci_remove(pdev);