diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2016-09-23 15:08:18 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-09-26 11:51:19 +0200 |
commit | a5c57037d6da0e0f739c83767bd051acad282c4d (patch) | |
tree | 3d91c862f0da3dba4c8a63e34f5eab54d935c118 | |
parent | 92889eca62fcd5b72d7c54101c35ff6d6d477c40 (diff) |
bridge: Make bridge_device_type static
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
-rw-r--r-- | bridge.c | 2 | ||||
-rw-r--r-- | device.h | 1 | ||||
-rw-r--r-- | wireless.c | 2 |
3 files changed, 2 insertions, 3 deletions
@@ -80,7 +80,7 @@ static void bridge_dump_info(struct device *dev, struct blob_buf *b); enum dev_change_type bridge_reload(struct device *dev, struct blob_attr *attr); -struct device_type bridge_device_type = { +static struct device_type bridge_device_type = { .name = "bridge", .config_params = &bridge_attr_list, @@ -226,7 +226,6 @@ struct device_hotplug_ops { extern const struct uci_blob_param_list device_attr_list; extern struct device_type simple_device_type; -extern struct device_type bridge_device_type; extern struct device_type tunnel_device_type; void device_lock(void); @@ -83,7 +83,7 @@ vif_config_add_bridge(struct blob_buf *buf, struct blob_attr *networks, bool pre if (!dev) return; - if (dev->type != &bridge_device_type) + if (!dev->type->bridge_capability) return; } |