X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=device.c;h=e17df13dbaca202055edb37efb019227f0e0c773;hb=824c5f4b3a041183604018e0068ccf123ee10221;hp=a7d18af7d1d489d61c88411ab503e6e0daf04352;hpb=83d3a901d3178a8840092b6e4f7f829b89da4ba0;p=project%2Fnetifd.git diff --git a/device.c b/device.c index a7d18af..e17df13 100644 --- a/device.c +++ b/device.c @@ -82,16 +82,6 @@ int device_type_add(struct device_type *devtype) return 0; } -/* initialize device type list and add known types */ -static void __init devtypes_init(void) -{ - device_type_add(&simple_device_type); - device_type_add(&bridge_device_type); - device_type_add(&tunnel_device_type); - device_type_add(&macvlan_device_type); - device_type_add(&vlandev_device_type); -} - /* Retrieve the device type for the given name. If 'bridge' is true, the type * must have bridge capabilities */ @@ -1065,3 +1055,8 @@ device_dump_status(struct blob_buf *b, struct device *dev) system_if_dump_stats(dev, b); blobmsg_close_table(b, s); } + +static void __init simple_device_type_init(void) +{ + device_type_add(&simple_device_type); +}