diff --git a/target/linux/qualcommax/files/drivers/net/pcs/pcs-qca-uniphy.c b/target/linux/qualcommax/files/drivers/net/pcs/pcs-qca-uniphy.c index 224cd9468a1..5b8c6f61822 100644 --- a/target/linux/qualcommax/files/drivers/net/pcs/pcs-qca-uniphy.c +++ b/target/linux/qualcommax/files/drivers/net/pcs/pcs-qca-uniphy.c @@ -432,9 +432,7 @@ static void qca_uniphy_pcs_get_state_10base_r(struct qca_uniphy *uniphy, } static void qca_uniphy_pcs_get_state(struct phylink_pcs *pcs, -#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 18, 0) unsigned int neg_mode, -#endif struct phylink_link_state *state) { struct qca_uniphy_pcs *upcs = to_qca_uniphy_pcs(pcs); @@ -1099,9 +1097,6 @@ static int qca_uniphy_probe(struct platform_device *pdev) for (i = 0; i < QCA_UNIPHY_CHANNELS; i++) { uniphy->port_pcs[i].pcs.ops = &qca_uniphy_pcs_ops; -#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 18, 0) - uniphy->port_pcs[i].pcs.neg_mode = true; -#endif uniphy->port_pcs[i].pcs.poll = true; uniphy->port_pcs[i].uniphy = uniphy; uniphy->port_pcs[i].channel = i;