libubox: fix PKG_MIRROR_HASH of 2024-03-29
[openwrt/staging/xback.git] / target / linux / ramips / patches-6.1 / 700-net-ethernet-mediatek-support-net-labels.patch
index d9fc379bed467bd82346bf0aaa19a3a474acb5ac..a6e2aa04ca305389c6a2381b234ec0904b762dec 100644 (file)
@@ -14,15 +14,15 @@ Signed-off-by: RenĂ© van Dorst <opensource@vdorst.com>
 
 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
 +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
-@@ -4558,6 +4558,7 @@ static const struct net_device_ops mtk_n
+@@ -4643,6 +4643,7 @@ static const struct net_device_ops mtk_n
  
  static int mtk_add_mac(struct mtk_eth *eth, struct device_node *np)
  {
 +      const char *name = of_get_property(np, "label", NULL);
        const __be32 *_id = of_get_property(np, "reg", NULL);
+       struct device_node *pcs_np;
        phy_interface_t phy_mode;
-       struct phylink *phylink;
-@@ -4729,6 +4730,9 @@ static int mtk_add_mac(struct mtk_eth *e
+@@ -4840,6 +4841,9 @@ static int mtk_add_mac(struct mtk_eth *e
                register_netdevice_notifier(&mac->device_notifier);
        }