summaryrefslogtreecommitdiff
path: root/backport/backport-include/linux/netdevice.h
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2017-09-11 00:10:14 +0200
committerJohannes Berg <johannes.berg@intel.com>2017-09-11 16:47:40 +0200
commit624532647442a5030eaf8868e8e3fe0c2c372d2c (patch)
treed836580d6af72ed8a1807159fbbc15878c7d4390 /backport/backport-include/linux/netdevice.h
parentf397828e001f422a888923ebba99b73f86571e29 (diff)
patches: brcmfmac: Fix netdev_set_priv_destructor
On kernel > 4.11.9 the new member priv_destructor should be set in netdev_set_priv_destructor() and not the old destructor member any more, it was removed. This fixes the build on >= 4.11.9. Fixes: 7c827d5ac9c1 ("patches: brcmfmac: fix netdev destructor") Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'backport/backport-include/linux/netdevice.h')
-rw-r--r--backport/backport-include/linux/netdevice.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/backport/backport-include/linux/netdevice.h b/backport/backport-include/linux/netdevice.h
index 112bcf2b..9c912285 100644
--- a/backport/backport-include/linux/netdevice.h
+++ b/backport/backport-include/linux/netdevice.h
@@ -320,8 +320,7 @@ static inline void netif_trans_update(struct net_device *dev)
}
#endif
-#if LINUX_VERSION_IS_LESS(4,12,0) && \
- !LINUX_VERSION_IN_RANGE(4,11,9, 4,12,0)
+#if LINUX_VERSION_IS_LESS(4,11,9)
#define netdev_set_priv_destructor(_dev, _destructor) \
(_dev)->destructor = __ ## _destructor
#define netdev_set_def_destructor(_dev) \