generic: remove support for older kernels from swconfig
The legacy swconfig switch driver framework supports kernels older than Linux 6.6 by using #ifdef'ery with LINUX_VERSION_CODE. Remove all that. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
@@ -24,7 +24,6 @@
|
||||
#include <linux/skbuff.h>
|
||||
#include <linux/switch.h>
|
||||
#include <linux/of.h>
|
||||
#include <linux/version.h>
|
||||
#include <uapi/linux/mii.h>
|
||||
|
||||
#define SWCONFIG_DEVNAME "switch%d"
|
||||
@@ -1054,9 +1053,7 @@ static struct genl_family switch_fam = {
|
||||
.module = THIS_MODULE,
|
||||
.ops = swconfig_ops,
|
||||
.n_ops = ARRAY_SIZE(swconfig_ops),
|
||||
#if LINUX_VERSION_CODE > KERNEL_VERSION(6,0,0)
|
||||
.resv_start_op = SWITCH_CMD_SET_VLAN + 1,
|
||||
#endif
|
||||
};
|
||||
|
||||
#ifdef CONFIG_OF
|
||||
|
||||
Reference in New Issue
Block a user