X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=macvlan.c;h=021d3944fb1ccbee81d9f141539a39d1a47ab258;hp=ffadfd4d77b501295985c5881cb29ba17eb12635;hb=b8ef742bd04ebef324ae11aee56c6e1d2cb7e0ad;hpb=f56a7fbaa6f155c654e7d01b5c4c0594f21239d6 diff --git a/macvlan.c b/macvlan.c index ffadfd4..021d394 100644 --- a/macvlan.c +++ b/macvlan.c @@ -253,8 +253,8 @@ macvlan_create(const char *name, struct device_type *devtype, return dev; } -struct device_type macvlan_device_type = { - .name = "MAC VLAN", +static struct device_type macvlan_device_type = { + .name = "macvlan", .config_params = &macvlan_attr_list, .create = macvlan_create, .config_init = macvlan_config_init, @@ -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); +}