From patchwork Wed Oct 14 15:04:45 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Lindner X-Patchwork-Id: 53695 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9EFBG38012845 for ; Wed, 14 Oct 2009 15:11:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761855AbZJNPIX (ORCPT ); Wed, 14 Oct 2009 11:08:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932078AbZJNPIX (ORCPT ); Wed, 14 Oct 2009 11:08:23 -0400 Received: from mo-p05-ob.rzone.de ([81.169.146.182]:58186 "EHLO mo-p05-ob.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761838AbZJNPIX (ORCPT ); Wed, 14 Oct 2009 11:08:23 -0400 X-RZG-AUTH: :OGkHfVO9a++ASa1NN1xF8Z+yxAO4YqHmxoKm7X00LncCjhL5i1Yt3adxGv0YR4h6rGSHSA== X-RZG-CLASS-ID: mo05 Received: from turgot.localnet (80.39-65-87.adsl-static.isp.belgacom.be [87.65.39.80]) by post.strato.de (mrclete mo2) (RZmta 22.1) with ESMTP id Z0499fl9EEPHib ; Wed, 14 Oct 2009 17:07:22 +0200 (MEST) To: linville@tuxdriver.com Subject: [PATCH] ath9k: adjust ahb callbacks to new struct layout to avoid compile errors From: Marek Lindner Date: Wed, 14 Oct 2009 23:04:45 +0800 Cc: linux-wireless@vger.kernel.org MIME-Version: 1.0 Message-Id: <200910142304.46025.lindner_marek@yahoo.de> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org diff --git a/drivers/net/wireless/ath/ath9k/ahb.c b/drivers/net/wireless/ath/ath9k/ahb.c index 33c9e81..25531f2 100644 --- a/drivers/net/wireless/ath/ath9k/ahb.c +++ b/drivers/net/wireless/ath/ath9k/ahb.c @@ -29,15 +29,13 @@ static void ath_ahb_read_cachesize(struct ath_common *common, int *csz) static void ath_ahb_cleanup(struct ath_common *common) { - struct ath_hw *ah = (struct ath_hw *) common->ah; - struct ath_softc *sc = ah->ah_sc; + struct ath_softc *sc = (struct ath_softc *)common->priv; iounmap(sc->mem); } static bool ath_ahb_eeprom_read(struct ath_common *common, u32 off, u16 *data) { - struct ath_hw *ah = (struct ath_hw *) common->ah; - struct ath_softc *sc = ah->ah_sc; + struct ath_softc *sc = (struct ath_softc *)common->priv; struct platform_device *pdev = to_platform_device(sc->dev); struct ath9k_platform_data *pdata;