From patchwork Wed May 19 06:47:59 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helmut Schaa X-Patchwork-Id: 100785 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4J6mClx024793 for ; Wed, 19 May 2010 06:48:12 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752980Ab0ESGsL (ORCPT ); Wed, 19 May 2010 02:48:11 -0400 Received: from fg-out-1718.google.com ([72.14.220.157]:55174 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752578Ab0ESGsK (ORCPT ); Wed, 19 May 2010 02:48:10 -0400 Received: by fg-out-1718.google.com with SMTP id 22so1426965fge.1 for ; Tue, 18 May 2010 23:48:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:cc:mime-version:content-type:content-transfer-encoding :message-id; bh=ZmIPBLckKDoR6IB03p0sn9A+zAs/aALJSAjrXwa/F4I=; b=uf1GQ4UIYSpI8Dqxg54bXD6k7zQhwkP2nxp3I2hDucqUOXKyAwCcTLysl+bnA/KdzW E8CnS6hWCEF8oFlXLITSxvqnLTAk++BRjm9RjchizWEB08BiMKdD22NZogplQ/YihmLL nbepON2UYopynP99r/hjsX8qH1OZzngTFPBH8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:subject:date:user-agent:cc:mime-version:content-type :content-transfer-encoding:message-id; b=vFh4SCLiZwuTHOVe9ACs262VLuYXIhwN3cRF10Jj3at2YnxroDGL0LiN5QlyAo/ft0 zCLvUVH60mYB39WLOhJ+QNw5+XNGfQ0jNbKx+U+vZHGlXh7jxLw1fs2ruqWWgS45ONqR 4EjpioL5uq3r6RLKJcBimjf0/1JElsp4uPHGc= Received: by 10.87.64.25 with SMTP id r25mr12368167fgk.20.1274251688505; Tue, 18 May 2010 23:48:08 -0700 (PDT) Received: from helmutmobil.localnet (p5495FD1A.dip.t-dialin.net [84.149.253.26]) by mx.google.com with ESMTPS id f31sm10429067fkf.48.2010.05.18.23.48.07 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 18 May 2010 23:48:07 -0700 (PDT) From: Helmut Schaa To: John Linville Subject: [PATCH] rt2x00: don't use to_pci_dev in rt2x00pci_uninitialize Date: Wed, 19 May 2010 08:47:59 +0200 User-Agent: KMail/1.12.4 (Linux/2.6.34-rc7-wl-default; KDE/4.3.5; x86_64; ; ) Cc: Ivo van Doorn , Gertjan van Wingerde , linux-wireless@vger.kernel.org, users@rt2x00.serialmonkey.com MIME-Version: 1.0 Message-Id: <201005190847.59068.helmut.schaa@googlemail.com> 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.3 (demeter.kernel.org [140.211.167.41]); Wed, 19 May 2010 06:48:13 +0000 (UTC) diff --git a/drivers/net/wireless/rt2x00/rt2x00pci.c b/drivers/net/wireless/rt2x00/rt2x00pci.c index a016f7c..f71eee6 100644 --- a/drivers/net/wireless/rt2x00/rt2x00pci.c +++ b/drivers/net/wireless/rt2x00/rt2x00pci.c @@ -206,7 +206,7 @@ void rt2x00pci_uninitialize(struct rt2x00_dev *rt2x00dev) /* * Free irq line. */ - free_irq(to_pci_dev(rt2x00dev->dev)->irq, rt2x00dev); + free_irq(rt2x00dev->irq, rt2x00dev); /* * Free DMA