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

From
Tom Gundersen <hidden>
Date
2014-07-10 08:27:21
Also in
linux-wireless, lkml
Reply to
Tom Gundersen, 2014-07-10
alloc_netdev is first called without a name, before the name and name assign
type is open-coded later.

Signed-off-by: Tom Gundersen <redacted>
Cc: John Linville <redacted>
Cc: <redacted>
---
 drivers/net/wireless/airo.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c
index 8a93e78..2156b03 100644
--- a/drivers/net/wireless/airo.c
+++ b/drivers/net/wireless/airo.c
@@ -2859,6 +2859,7 @@ static struct net_device *_init_airo_card( unsigned short irq, int port,
 	}
 
 	strcpy(dev->name, "eth%d");
+	dev->name_assign_type = NET_NAME_ENUM;
 	rc = register_netdev(dev);
 	if (rc) {
 		airo_print_err(dev->name, "Couldn't register_netdev");
-- 
1.9.3

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Thread (55 messages) 55 messages, 10 authors, last reply 2014-07-16
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help