tunnel: Use tunnel as device type name
authorHans Dedecker <dedeckeh@gmail.com>
Fri, 23 Sep 2016 13:08:20 +0000 (15:08 +0200)
committerFelix Fietkau <nbd@nbd.name>
Mon, 26 Sep 2016 09:51:19 +0000 (11:51 +0200)
Fixes creation of tunnel devices by UCI due to device handlers rework

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
tunnel.c

index 32f3613..3fa3e21 100644 (file)
--- a/tunnel.c
+++ b/tunnel.c
@@ -90,7 +90,7 @@ tunnel_free(struct device *dev)
 }
 
 struct device_type tunnel_device_type = {
 }
 
 struct device_type tunnel_device_type = {
-       .name = "IP tunnel",
+       .name = "tunnel",
        .config_params = &tunnel_attr_list,
        .reload = tunnel_reload,
        .create = tunnel_create,
        .config_params = &tunnel_attr_list,
        .reload = tunnel_reload,
        .create = tunnel_create,