mt76: remove <6.11 compat code

It is no longer needed

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2026-08-26 12:17:38 +02:00
parent 755e749c89
commit 4d5b3357b9
4 changed files with 3 additions and 34 deletions
+1 -10
View File
@@ -1283,20 +1283,11 @@ free_device:
return ret;
}
#if LINUX_VERSION_CODE < KERNEL_VERSION(6,11,0)
static int
#else
static void
#endif
mt798x_wmac_remove(struct platform_device *pdev)
static void mt798x_wmac_remove(struct platform_device *pdev)
{
struct mt7915_dev *dev = platform_get_drvdata(pdev);
mt7915_unregister_device(dev);
#if LINUX_VERSION_CODE < KERNEL_VERSION(6,11,0)
return 0;
#endif
}
static const struct of_device_id mt798x_wmac_of_match[] = {