From patchwork Mon Apr 11 17:26:55 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sujith Manoharan X-Patchwork-Id: 698641 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3BHOmwm029794 for ; Mon, 11 Apr 2011 17:24:48 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754653Ab1DKRYg (ORCPT ); Mon, 11 Apr 2011 13:24:36 -0400 Received: from mail-iw0-f174.google.com ([209.85.214.174]:44820 "EHLO mail-iw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754076Ab1DKRYe (ORCPT ); Mon, 11 Apr 2011 13:24:34 -0400 Received: by iwn34 with SMTP id 34so5822607iwn.19 for ; Mon, 11 Apr 2011 10:24:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:mime-version:content-type :content-transfer-encoding:message-id:date:to:cc:subject; bh=7QU8xjx9QoncubTaYBHl+VJn6xwWZyi/Unow3mYFlv0=; b=rxygAMtKBLTFiFvenXIC29tcHUl4pU0ZyDtaiDwK2SUrQUSVDg8HF0AAH6bGo6o1RR ey8A5wWCHv3dPS04QHoLZxEIzNKR1Vj22MP4fcUWDiYG1ujDRgps2I525PJkB3+Kcrv0 sCC1IDDMd6CQ9cjAt2RwG07gKYKwBkCXnNiGA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:mime-version:content-type:content-transfer-encoding:message-id :date:to:cc:subject; b=EYXkfWvOSACn819ahXFNKpn3t+FOtiMjWqBB158CfVp4yyLvXdcwvf29ldiONUyZUu w9BHta02HMZTpiasQfYwGmiKmu8/ATpUSFsKwP/4OI+8E+lhbDnQGiRfUl66JE6Gpagt Y9HbwVT8DByKkJGMMmox9d1S7IY27KUEAORj8= Received: by 10.43.64.82 with SMTP id xh18mr8371212icb.65.1302542673752; Mon, 11 Apr 2011 10:24:33 -0700 (PDT) Received: from atheros-test ([122.165.20.191]) by mx.google.com with ESMTPS id gx2sm4340268ibb.9.2011.04.11.10.24.31 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 11 Apr 2011 10:24:33 -0700 (PDT) From: Sujith MIME-Version: 1.0 Message-ID: <19875.14815.278751.401499@gargle.gargle.HOWL> Date: Mon, 11 Apr 2011 22:56:55 +0530 To: "John W. Linville" CC: linux-wireless , sidhayn@gmail.com Subject: [PATCH] ath9k_htc: Fix ethtool reporting Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 11 Apr 2011 17:24:48 +0000 (UTC) From: Sujith Manoharan Pass the correct module name and device interface so that ethtool can display the proper values. The firmware version will be fixed later on when the FW can actually report a version. :) Reported-by: Richard Farina Signed-off-by: Sujith Manoharan Tested-by: Richard Farina --- drivers/net/wireless/ath/ath9k/hif_usb.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/hif_usb.c b/drivers/net/wireless/ath/ath9k/hif_usb.c index f1b8af6..2d10239 100644 --- a/drivers/net/wireless/ath/ath9k/hif_usb.c +++ b/drivers/net/wireless/ath/ath9k/hif_usb.c @@ -1040,7 +1040,7 @@ static int ath9k_hif_usb_probe(struct usb_interface *interface, } ret = ath9k_htc_hw_init(hif_dev->htc_handle, - &hif_dev->udev->dev, hif_dev->device_id, + &interface->dev, hif_dev->device_id, hif_dev->udev->product, id->driver_info); if (ret) { ret = -EINVAL; @@ -1158,7 +1158,7 @@ fail_resume: #endif static struct usb_driver ath9k_hif_usb_driver = { - .name = "ath9k_hif_usb", + .name = KBUILD_MODNAME, .probe = ath9k_hif_usb_probe, .disconnect = ath9k_hif_usb_disconnect, #ifdef CONFIG_PM