summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2016-09-23 15:08:18 +0200
committerFelix Fietkau <nbd@nbd.name>2016-09-26 11:51:19 +0200
commita5c57037d6da0e0f739c83767bd051acad282c4d (patch)
tree3d91c862f0da3dba4c8a63e34f5eab54d935c118
parent92889eca62fcd5b72d7c54101c35ff6d6d477c40 (diff)
bridge: Make bridge_device_type static
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
-rw-r--r--bridge.c2
-rw-r--r--device.h1
-rw-r--r--wireless.c2
3 files changed, 2 insertions, 3 deletions
diff --git a/bridge.c b/bridge.c
index 98e237b..8e6c9a6 100644
--- a/bridge.c
+++ b/bridge.c
@@ -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,
diff --git a/device.h b/device.h
index f3ca957..2af93bb 100644
--- a/device.h
+++ b/device.h
@@ -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);
diff --git a/wireless.c b/wireless.c
index be94c34..9109ce1 100644
--- a/wireless.c
+++ b/wireless.c
@@ -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;
}