diff options
author | Jonas Gorski <jogo@openwrt.org> | 2016-01-24 12:35:59 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2016-01-24 12:35:59 +0000 |
commit | 7041ce8562ca65a5a083b63a8eaabe7806be4d96 (patch) | |
tree | 065d0861efd1c1f2f1ccad9686b86954e7bbcc95 /target/linux | |
parent | aa81e80a6ad8a9062e5c36be0819b084d287a44a (diff) | |
download | master-187ad058-7041ce8562ca65a5a083b63a8eaabe7806be4d96.tar.gz master-187ad058-7041ce8562ca65a5a083b63a8eaabe7806be4d96.tar.bz2 master-187ad058-7041ce8562ca65a5a083b63a8eaabe7806be4d96.zip |
swconfig: drop linux < 3.13 code paths
The oldest kernel we support is 3.18, no need to keep code paths
for older kernels.
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48471 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/swconfig.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/swconfig.c b/target/linux/generic/files/drivers/net/phy/swconfig.c index 9a5f1e9123..a47af3c0c6 100644 --- a/target/linux/generic/files/drivers/net/phy/swconfig.c +++ b/target/linux/generic/files/drivers/net/phy/swconfig.c @@ -1173,33 +1173,13 @@ static int __init swconfig_init(void) { int err; -#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,13,0)) - int i; -#endif INIT_LIST_HEAD(&swdevs); -#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,13,0)) - err = genl_register_family(&switch_fam); - if (err) - return err; - - for (i = 0; i < ARRAY_SIZE(swconfig_ops); i++) { - err = genl_register_ops(&switch_fam, &swconfig_ops[i]); - if (err) - goto unregister; - } - return 0; - -unregister: - genl_unregister_family(&switch_fam); - return err; -#else err = genl_register_family_with_ops(&switch_fam, swconfig_ops); if (err) return err; return 0; -#endif } static void __exit |