aboutsummaryrefslogtreecommitdiffstats
path: root/net/bridge
diff options
context:
space:
mode:
Diffstat (limited to 'net/bridge')
-rw-r--r--net/bridge/br_if.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/bridge/br_if.c b/net/bridge/br_if.c
index e486f1fc3632..142ebac14176 100644
--- a/net/bridge/br_if.c
+++ b/net/bridge/br_if.c
@@ -264,6 +264,10 @@ static struct net_bridge_port *new_nbp(struct net_bridge *br,
264 return p; 264 return p;
265} 265}
266 266
267static struct device_type br_type = {
268 .name = "bridge",
269};
270
267int br_add_bridge(struct net *net, const char *name) 271int br_add_bridge(struct net *net, const char *name)
268{ 272{
269 struct net_device *dev; 273 struct net_device *dev;
@@ -280,6 +284,8 @@ int br_add_bridge(struct net *net, const char *name)
280 goto out_free; 284 goto out_free;
281 } 285 }
282 286
287 SET_NETDEV_DEVTYPE(dev, &br_type);
288
283 ret = register_netdevice(dev); 289 ret = register_netdevice(dev);
284 if (ret) 290 if (ret)
285 goto out_free; 291 goto out_free;