From patchwork Fri Jul 24 07:55:44 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Beregalov X-Patchwork-Id: 37091 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 n6O7tvwq000331 for ; Fri, 24 Jul 2009 07:55:57 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752002AbZGXHzy (ORCPT ); Fri, 24 Jul 2009 03:55:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752014AbZGXHzx (ORCPT ); Fri, 24 Jul 2009 03:55:53 -0400 Received: from mail-fx0-f218.google.com ([209.85.220.218]:41610 "EHLO mail-fx0-f218.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751999AbZGXHzx (ORCPT ); Fri, 24 Jul 2009 03:55:53 -0400 Received: by fxm18 with SMTP id 18so1282392fxm.37 for ; Fri, 24 Jul 2009 00:55:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=CLNJAs79KJwzvc/2SOA0YzAWHlyYtXRPoOj5tLutLu0=; b=KCcxv5ysl05p7nbcFcbZ9UYRflSNU29TxAUpEwQJbLjhn/5d7rNckr8D3mtlQL1dgK 8NziLhvnABwOapu3FOLoMlqSOYvzMNIOXrKvL/UX7SwbNED4PTv4vNnQwqdW5Qa9hN6Z JEh07McykmJ7nrjJfaivq+ND12xiAzYHc1NgQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=ReObPr1h/8JsoldWuYfcPrP309XgaT4VzTUfo+EzrlwKZUA/UxgUtGHOfrlZfjkirO xvWqJBMR96HWkSplzDO19Wui+99dW+gVSb8xw8IvHwt8SR2wzyZo3Yw8AOoG2YPYoDei IDYLcLm77JO+F3Q9sPAy+yQof0X6iNhKTLSQg= Received: by 10.86.92.13 with SMTP id p13mr2736592fgb.43.1248422151671; Fri, 24 Jul 2009 00:55:51 -0700 (PDT) Received: from localhost.localdomain (ppp85-140-244-75.pppoe.mtu-net.ru [85.140.244.75]) by mx.google.com with ESMTPS id l19sm6916368fgb.21.2009.07.24.00.55.50 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 24 Jul 2009 00:55:51 -0700 (PDT) From: Alexander Beregalov To: linux-next@vger.kernel.org, chunkeey@web.de, linville@tuxdriver.com, linux-wireless@vger.kernel.org Cc: Alexander Beregalov Subject: [PATCH] ar9170: fix build error when !CONFIG_AR9170_LEDS Date: Fri, 24 Jul 2009 11:55:44 +0400 Message-Id: <1248422144-6150-1-git-send-email-a.beregalov@gmail.com> X-Mailer: git-send-email 1.6.3.3 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Fix this build error when CONFIG_AR9170_LEDS is not set drivers/net/wireless/ath/ar9170/main.c:1296: error: 'struct ar9170' has no member named 'led_work' Signed-off-by: Alexander Beregalov --- drivers/net/wireless/ath/ar9170/main.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/net/wireless/ath/ar9170/main.c b/drivers/net/wireless/ath/ar9170/main.c index c7287a8..85a1452 100644 --- a/drivers/net/wireless/ath/ar9170/main.c +++ b/drivers/net/wireless/ath/ar9170/main.c @@ -1293,7 +1293,9 @@ static void ar9170_op_stop(struct ieee80211_hw *hw) flush_workqueue(ar->hw->workqueue); cancel_delayed_work_sync(&ar->tx_janitor); +#ifdef CONFIG_AR9170_LEDS cancel_delayed_work_sync(&ar->led_work); +#endif cancel_work_sync(&ar->filter_config_work); cancel_work_sync(&ar->beacon_work); mutex_lock(&ar->mutex);