Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
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,
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);
if (!dev)
return;
- if (dev->type != &bridge_device_type)
+ if (!dev->type->bridge_capability)
return;
}