aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2011-11-25 09:38:38 -0500
committerDavid S. Miller <davem@davemloft.net>2011-11-26 14:48:16 -0500
commit34a430d7bd26b35ca3a7d3fc83663de8ea6e33f6 (patch)
tree8646a156a13e68babdc8daa85bec607c68bc7800 /include
parent3d825ede8c79a4799a6a3c34719551c7c1908b96 (diff)
dsa: Allow core and drivers to be built as modules
Change the kconfig types to tristate and adjust the condition for declaring net_device::dsa_ptr to allow for this. Adjust the makefile so that if NET_DSA_MV88E6123_61_65=y and NET_DSA_MV88E6131=m or vice versa then both drivers are built-in. We could leave these options as bool and make NET_DSA_MV88E6XXX a user-selected option, but that would break existing configurations. Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/netdevice.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 63721a69804c..87f7353a2407 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -1079,7 +1079,7 @@ struct net_device {
1079#if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE) 1079#if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE)
1080 struct vlan_group __rcu *vlgrp; /* VLAN group */ 1080 struct vlan_group __rcu *vlgrp; /* VLAN group */
1081#endif 1081#endif
1082#ifdef CONFIG_NET_DSA 1082#if IS_ENABLED(CONFIG_NET_DSA)
1083 struct dsa_switch_tree *dsa_ptr; /* dsa specific data */ 1083 struct dsa_switch_tree *dsa_ptr; /* dsa specific data */
1084#endif 1084#endif
1085 void *atalk_ptr; /* AppleTalk link */ 1085 void *atalk_ptr; /* AppleTalk link */