mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-13 00:17:02 +04:00
qualcommax: pcs: qca-uniphy: drop kernel version checks
Remove kernel version comparison directives from the QCA UNIPHY PCS driver since the qualcommax targets have been updated to kernel 6.18. Signed-off-by: George Moussalem <george.moussalem@outlook.com> Link: https://github.com/openwrt/openwrt/pull/24973 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
1 parent
b6a035fc2b
commit
2690a2fe52
1 file changed
-5
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user