[PATCH v7 33/33] net: slip - set name assign type

2014-07-10 Thread Tom Gundersen
Names are given by the first available SLIP channel, so order
of device creation matters.

Signed-off-by: Tom Gundersen 
Cc: Tyler Hall 
---
 drivers/net/slip/slip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/slip/slip.c b/drivers/net/slip/slip.c
index 05387b1..2a305d1 100644
--- a/drivers/net/slip/slip.c
+++ b/drivers/net/slip/slip.c
@@ -749,7 +749,7 @@ static struct slip *sl_alloc(dev_t line)
return NULL;
 
sprintf(name, "sl%d", i);
-   dev = alloc_netdev(sizeof(*sl), name, NET_NAME_UNKNOWN, sl_setup);
+   dev = alloc_netdev(sizeof(*sl), name, NET_NAME_ENUM, sl_setup);
if (!dev)
return NULL;
 
-- 
1.9.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH v7 33/33] net: slip - set name assign type

2014-07-10 Thread Tom Gundersen
Names are given by the first available SLIP channel, so order
of device creation matters.

Signed-off-by: Tom Gundersen t...@jklm.no
Cc: Tyler Hall tylerwh...@gmail.com
---
 drivers/net/slip/slip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/slip/slip.c b/drivers/net/slip/slip.c
index 05387b1..2a305d1 100644
--- a/drivers/net/slip/slip.c
+++ b/drivers/net/slip/slip.c
@@ -749,7 +749,7 @@ static struct slip *sl_alloc(dev_t line)
return NULL;
 
sprintf(name, sl%d, i);
-   dev = alloc_netdev(sizeof(*sl), name, NET_NAME_UNKNOWN, sl_setup);
+   dev = alloc_netdev(sizeof(*sl), name, NET_NAME_ENUM, sl_setup);
if (!dev)
return NULL;
 
-- 
1.9.3

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/