diff --git a/target/linux/qualcommbe/patches-6.12/0338-net-ethernet-qualcomm-Add-phylink-support-for-PPE-MA.patch b/target/linux/qualcommbe/patches-6.12/0338-net-ethernet-qualcomm-Add-phylink-support-for-PPE-MA.patch index 348e834f80..b108366b1a 100644 --- a/target/linux/qualcommbe/patches-6.12/0338-net-ethernet-qualcomm-Add-phylink-support-for-PPE-MA.patch +++ b/target/linux/qualcommbe/patches-6.12/0338-net-ethernet-qualcomm-Add-phylink-support-for-PPE-MA.patch @@ -102,7 +102,7 @@ Signed-off-by: Lei Wei + +#include +#include -+#include ++#include +#include +#include +#include @@ -494,7 +494,7 @@ Signed-off-by: Lei Wei + if (!pcs_node) + return -ENODEV; + -+ ppe_port->pcs = ipq_unipcs_create(pcs_node); ++ ppe_port->pcs = ipq_pcs_get(pcs_node); + of_node_put(pcs_node); + if (IS_ERR(ppe_port->pcs)) { + dev_err(ppe_dev->dev, "%s: port %d failed to create PCS\n", @@ -551,7 +551,7 @@ Signed-off-by: Lei Wei + phylink_destroy(ppe_port->phylink); + ppe_port->phylink = NULL; +err_free_pcs: -+ ipq_unipcs_destroy(ppe_port->pcs); ++ ipq_pcs_put(ppe_port->pcs); + ppe_port->pcs = NULL; + return ret; +} @@ -576,7 +576,7 @@ Signed-off-by: Lei Wei + + /* Destroy PCS */ + if (ppe_port->pcs) { -+ ipq_unipcs_destroy(ppe_port->pcs); ++ ipq_pcs_put(ppe_port->pcs); + ppe_port->pcs = NULL; + } +}