mediatek: hnat: remove "mtketh-ppe-num" prop

This commit is contained in:
hanwckf 2023-12-31 11:16:38 +08:00
parent c8696f26ca
commit e0fa787d3e
9 changed files with 1 additions and 14 deletions

View File

@ -124,7 +124,6 @@
&hnat {
mtketh-wan = "eth1";
mtketh-lan = "eth0";
mtketh-ppe-num = <2>;
mtketh-max-gmac = <2>;
status = "okay";
};

View File

@ -210,7 +210,6 @@
mtketh-lan = "eth1";
mtketh-ppd = "eth1";
mtketh-max-gmac = <2>;
mtketh-ppe-num = <2>;
status = "okay";
};

View File

@ -274,7 +274,6 @@
mtketh-wan = "eth1";
mtketh-lan = "lan";
mtketh-max-gmac = <2>;
mtketh-ppe-num = <2>;
status = "okay";
};

View File

@ -273,7 +273,6 @@
mtketh-wan = "eth1";
mtketh-lan = "lan";
mtketh-max-gmac = <2>;
mtketh-ppe-num = <2>;
status = "okay";
};

View File

@ -240,7 +240,6 @@
&hnat {
mtketh-wan = "eth1";
mtketh-lan = "lan";
mtketh-ppe-num = <2>;
mtketh-max-gmac = <2>;
status = "okay";
};

View File

@ -123,7 +123,6 @@
mtketh-wan = "eth1";
mtketh-lan = "lan";
mtketh-max-gmac = <2>;
mtketh-ppe-num = <2>;
status = "okay";
};

View File

@ -119,7 +119,6 @@
mtketh-wan = "eth1";
mtketh-lan = "lan";
mtketh-max-gmac = <2>;
mtketh-ppe-num = <2>;
status = "okay";
};

View File

@ -129,7 +129,6 @@
mtketh-wan = "eth1";
mtketh-lan = "eth0";
mtketh-max-gmac = <2>;
mtketh-ppe-num = <2>;
status = "okay";
};

View File

@ -732,12 +732,7 @@ static int hnat_probe(struct platform_device *pdev)
dev_info(&pdev->dev, "wan dsa port = %d\n", hnat_priv->wan_dsa_port);
}
err = of_property_read_u32_index(np, "mtketh-ppe-num", 0, &val);
if (err < 0)
hnat_priv->ppe_num = ppe_cnt;
else
hnat_priv->ppe_num = val;
hnat_priv->ppe_num = ppe_cnt;
dev_info(&pdev->dev, "ppe num = %d\n", hnat_priv->ppe_num);