From patchwork Sat Nov 3 22:02:26 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 12656 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id AE07A23FBB for ; Sat, 3 Nov 2012 22:02:55 +0000 (UTC) Received: from mail-da0-f52.google.com (mail-da0-f52.google.com [209.85.210.52]) by fiordland.canonical.com (Postfix) with ESMTP id 46B5FA18455 for ; Sat, 3 Nov 2012 22:02:55 +0000 (UTC) Received: by mail-da0-f52.google.com with SMTP id f10so2036033dak.11 for ; Sat, 03 Nov 2012 15:02:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :mime-version:content-type:content-transfer-encoding :x-gm-message-state; bh=wIofKd7f1gtH9ZxKF3x2XBljPZNZ8Zk1C0YWgoZ0qAE=; b=GKKMzQn4f+rwGUfYZfK3NWofkHWUDEETp/A4p3K5QnhoH8gxMx/5bgTdYLtSUfZf5U MVsSB7NMO65zP++OxPVNKPUUEMm/LTb9ODim4Mb0wRlpJ3Xgbc7ZED5RNpQNUJ8+StIR RiCYkUr2GSWE5dqDs6M0L6NleH3SvpIzfZ6gmvGBPrvVxzgxuwNhJHotTk2ZDYa+T+rI Ud/cHebHtcV/Sc/r8uy/h7VOlCjsXDPaVt7CscNf8Xc7sGM+mBSpTZZ8zxa1PwP4G7FM r8CInfOTqXjlSVRie9n8/fx7QV7Az8ENzvyHehtAqSPCU1k+a3jktOM/r6vPA0Vt6Xom oWSA== Received: by 10.66.89.98 with SMTP id bn2mr16543937pab.72.1351980174989; Sat, 03 Nov 2012 15:02:54 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.68.34.137 with SMTP id z9csp94640pbi; Sat, 3 Nov 2012 15:02:54 -0700 (PDT) Received: by 10.14.194.2 with SMTP id l2mr20615923een.12.1351980173899; Sat, 03 Nov 2012 15:02:53 -0700 (PDT) Received: from mail-ea0-f181.google.com (mail-ea0-f181.google.com [209.85.215.181]) by mx.google.com with ESMTPS id f44si1145192eep.119.2012.11.03.15.02.53 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 03 Nov 2012 15:02:53 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.215.181 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.215.181; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.215.181 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) smtp.mail=lee.jones@linaro.org Received: by mail-ea0-f181.google.com with SMTP id m6so1968361eab.40 for ; Sat, 03 Nov 2012 15:02:53 -0700 (PDT) Received: by 10.14.1.69 with SMTP id 45mr20528503eec.23.1351980173257; Sat, 03 Nov 2012 15:02:53 -0700 (PDT) Received: from localhost.localdomain (88.Red-2-139-206.staticIP.rima-tde.net. [2.139.206.88]) by mx.google.com with ESMTPS id d44sm34844369eeo.10.2012.11.03.15.02.51 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 03 Nov 2012 15:02:52 -0700 (PDT) From: Lee Jones To: linux-kernel@vger.kernel.org Cc: Lee Jones , Mark Brown , alsa-devel@alsa-project.org Subject: [PATCH 5/9] ASoC: Only compile adav80x codec when a bus is defined Date: Sat, 3 Nov 2012 23:02:26 +0100 Message-Id: <1351980150-24145-6-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1351980150-24145-1-git-send-email-lee.jones@linaro.org> References: <1351980150-24145-1-git-send-email-lee.jones@linaro.org> MIME-Version: 1.0 X-Gm-Message-State: ALoCoQk/b+pKrC4yFpvJkM/sgkOLsTmdMmWS0xGFupwpObpycHXdU7HG9eoe4a/K1f1SLox7Ox4+ If !CONFIG_SPI and !CONFIG_I2C* then there is no point adding support for the adav80x codec as it relies on a bus to operate. This patch fixes the build warnings below when SPI and I2C are not specified in the configuration. sound/soc/codecs/adav80x.c:842:22: warning: ‘adav80x_bus_probe’ defined but not used [-Wunused-function] sound/soc/codecs/adav80x.c:863:22: warning: ‘adav80x_bus_remove’ defined but not used [-Wunused-function] Cc: Mark Brown Cc: alsa-devel@alsa-project.org Signed-off-by: Lee Jones --- sound/soc/codecs/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig index b92759a..0d8135a 100644 --- a/sound/soc/codecs/Kconfig +++ b/sound/soc/codecs/Kconfig @@ -19,7 +19,7 @@ config SND_SOC_ALL_CODECS select SND_SOC_AD1980 if SND_SOC_AC97_BUS select SND_SOC_AD73311 select SND_SOC_ADAU1373 if I2C - select SND_SOC_ADAV80X + select SND_SOC_ADAV80X if (I2C || I2C_MODULE || SPI_MASTER) select SND_SOC_ADS117X select SND_SOC_AK4104 if SPI_MASTER select SND_SOC_AK4535 if I2C