From patchwork Thu Jul 10 08:17:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Gundersen X-Patchwork-Id: 4521981 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id AF2759F26C for ; Thu, 10 Jul 2014 08:26:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E36D92021B for ; Thu, 10 Jul 2014 08:26:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 05BC120148 for ; Thu, 10 Jul 2014 08:26:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752754AbaGJIYq (ORCPT ); Thu, 10 Jul 2014 04:24:46 -0400 Received: from mail-la0-f46.google.com ([209.85.215.46]:44880 "EHLO mail-la0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752208AbaGJISh (ORCPT ); Thu, 10 Jul 2014 04:18:37 -0400 Received: by mail-la0-f46.google.com with SMTP id el20so5900060lab.33 for ; Thu, 10 Jul 2014 01:18:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=1zbaBtbWOnn2p2luJ3m/M+Hn7FsSxnLLeJOTz6JZcJM=; b=SFTzb2oFiEJBIDzDgt0JwYMvOu0A4kYZGIzpvecw8Dnba9YoRAyfI2T9YzvhwrgDD/ nV+SC/kMPgFA86v3wah5ihNicpPy5BqU1S4oTDjxOhhCN6KnAVP+AIW0oAR7fFPhzpVn YNmVrcScZkmWbcGbAAeLk+1tTWcAnWp585CKF0EuaWVfeCCkWsTns1jtLvKk2Js0xfHj FJr+HS7cWm5Nt0+L3A/N/NJ6RaFupSUby2dZt2csM9GppFB6RukZhdSSDzkAQVWk0UfI bDNC+cm2e11dA0YrG+ce+UOEvWaP7cFMkHKUEROnUtWeK8nWSaP18wgqJDEi4eE7Ml/Q qGXw== X-Gm-Message-State: ALoCoQmQhtgPixVCwxEUOWDmINbGDFPoLhujFBpb1weR2IPCrf4s5UMumBTGzsh/7eCyNWxHHxva X-Received: by 10.112.138.36 with SMTP id qn4mr958768lbb.74.1404980315747; Thu, 10 Jul 2014 01:18:35 -0700 (PDT) Received: from localhost.localdomain (m188-149-105-114.cust.tele2.no. [188.149.105.114]) by mx.google.com with ESMTPSA id tg1sm37154793lbb.11.2014.07.10.01.18.33 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Jul 2014 01:18:34 -0700 (PDT) From: Tom Gundersen To: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, David Miller , David Herrmann , Kay Sievers , Tom Gundersen , John Linville , linux-wireless@vger.kernel.org Subject: [PATCH v7 17/33] net: airo - set name assign type Date: Thu, 10 Jul 2014 10:17:22 +0200 Message-Id: <1404980258-30853-18-git-send-email-teg@jklm.no> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1404980258-30853-1-git-send-email-teg@jklm.no> References: <1404980258-30853-1-git-send-email-teg@jklm.no> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP alloc_netdev is first called without a name, before the name and name assign type is open-coded later. Signed-off-by: Tom Gundersen Cc: John Linville Cc: linux-wireless@vger.kernel.org --- 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");