mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: remove <6.11 compat code
It is no longer needed Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -21,11 +21,7 @@
|
||||
#include <linux/soc/mediatek/mtk_wed.h>
|
||||
#include <net/netlink.h>
|
||||
#include <net/mac80211.h>
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(6,6,0)
|
||||
#include <net/page_pool.h>
|
||||
#else
|
||||
#include <net/page_pool/helpers.h>
|
||||
#endif
|
||||
#include "util.h"
|
||||
#include "testmode.h"
|
||||
|
||||
|
||||
+1
-10
@@ -52,21 +52,12 @@ error:
|
||||
return ret;
|
||||
}
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(6,11,0)
|
||||
static int
|
||||
#else
|
||||
static void
|
||||
#endif
|
||||
mt76_wmac_remove(struct platform_device *pdev)
|
||||
static void mt76_wmac_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct mt76_dev *mdev = platform_get_drvdata(pdev);
|
||||
struct mt7603_dev *dev = container_of(mdev, struct mt7603_dev, mt76);
|
||||
|
||||
mt7603_unregister_device(dev);
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(6,11,0)
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
static const struct of_device_id of_wmac_match[] = {
|
||||
|
||||
+1
-10
@@ -45,20 +45,11 @@ static int mt7622_wmac_probe(struct platform_device *pdev)
|
||||
return mt7615_mmio_probe(&pdev->dev, mem_base, irq, mt7615e_reg_map);
|
||||
}
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(6,11,0)
|
||||
static int
|
||||
#else
|
||||
static void
|
||||
#endif
|
||||
mt7622_wmac_remove(struct platform_device *pdev)
|
||||
static void mt7622_wmac_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct mt7615_dev *dev = platform_get_drvdata(pdev);
|
||||
|
||||
mt7615_unregister_device(dev);
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(6,11,0)
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
static const struct of_device_id mt7622_wmac_of_match[] = {
|
||||
|
||||
+1
-10
@@ -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[] = {
|
||||
|
||||
Reference in New Issue
Block a user