X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=macvlan.c;h=01a48cd9e97488bfab176ee4777e690457a553a7;hp=ffadfd4d77b501295985c5881cb29ba17eb12635;hb=92889eca62fcd5b72d7c54101c35ff6d6d477c40;hpb=fe6ad84c7120a1000c9dcd3cabdc6249b36414a6;ds=sidebyside diff --git a/macvlan.c b/macvlan.c index ffadfd4..01a48cd 100644 --- a/macvlan.c +++ b/macvlan.c @@ -253,7 +253,7 @@ macvlan_create(const char *name, struct device_type *devtype, return dev; } -struct device_type macvlan_device_type = { +static struct device_type macvlan_device_type = { .name = "MAC VLAN", .config_params = &macvlan_attr_list, .create = macvlan_create, @@ -262,3 +262,8 @@ struct device_type macvlan_device_type = { .free = macvlan_free, .dump_info = macvlan_dump_info, }; + +static void __init macvlan_device_type_init(void) +{ + device_type_add(&macvlan_device_type); +}