From patchwork Wed Jan 22 06:13:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 23482 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-gg0-f197.google.com (mail-gg0-f197.google.com [209.85.161.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 12539218CB for ; Wed, 22 Jan 2014 06:18:33 +0000 (UTC) Received: by mail-gg0-f197.google.com with SMTP id q3sf14138841gge.4 for ; Tue, 21 Jan 2014 22:18:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe:content-type :content-transfer-encoding; bh=V1+R8SbQjN3inavqitk31GA5FeO3spnGIgpGjy9arP8=; b=GEUzXEMKhGZWqPOsr8SKaWrMVcBFycdi0G9Zfsay+LXyExqkt1cN92uAOz8DZCyVQ8 /cTFygZ9AbKYX6IcnylPV/Mc5iPuWyfQD2XZODC49Mz4Z95kmwG/lEOfIWUasedS5PL+ HU+mlSKT7idlbsH5/5OfT5o2Zswk+GaTu58J6q99fC4DDXLqJXzUTawJmVM/UEVzmb0z OdFzB8GC5M1eQkHbCQgWM6VTfN6oSqZpRG4M9pX2G3m/LxxeysbVYToLva+1tw/ilalA URGJNJc0+hB5anX5bu3drCD52z4/YKj15e78zdNquU02sppgHQ6xosfV7R/t2YAL0l+U Z7zA== X-Gm-Message-State: ALoCoQl/VBhWsWHmSJJ5NP0hlvu0vztrzSffRHRJsJXJAo3m0IcvP1KXtFNUMBuXtsAJTpOxLFYh X-Received: by 10.224.75.9 with SMTP id w9mr10305008qaj.2.1390371513100; Tue, 21 Jan 2014 22:18:33 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.89.38 with SMTP id u35ls1467199qgd.60.gmail; Tue, 21 Jan 2014 22:18:33 -0800 (PST) X-Received: by 10.220.174.200 with SMTP id u8mr17116042vcz.6.1390371512915; Tue, 21 Jan 2014 22:18:32 -0800 (PST) Received: from mail-vb0-f45.google.com (mail-vb0-f45.google.com [209.85.212.45]) by mx.google.com with ESMTPS id kv9si3858771vec.100.2014.01.21.22.18.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 21 Jan 2014 22:18:32 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.45 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.45; Received: by mail-vb0-f45.google.com with SMTP id m10so4012021vbh.4 for ; Tue, 21 Jan 2014 22:18:32 -0800 (PST) X-Received: by 10.220.99.7 with SMTP id s7mr9516383vcn.19.1390371512837; Tue, 21 Jan 2014 22:18:32 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp163810vcz; Tue, 21 Jan 2014 22:18:32 -0800 (PST) X-Received: by 10.68.252.161 with SMTP id zt1mr14263156pbc.130.1390371512112; Tue, 21 Jan 2014 22:18:32 -0800 (PST) Received: from mail-pd0-f178.google.com (mail-pd0-f178.google.com [209.85.192.178]) by mx.google.com with ESMTPS id n8si8375695pax.131.2014.01.21.22.18.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 21 Jan 2014 22:18:32 -0800 (PST) Received-SPF: neutral (google.com: 209.85.192.178 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.192.178; Received: by mail-pd0-f178.google.com with SMTP id y13so9182652pdi.23 for ; Tue, 21 Jan 2014 22:18:31 -0800 (PST) X-Received: by 10.68.241.198 with SMTP id wk6mr29456289pbc.11.1390371511727; Tue, 21 Jan 2014 22:18:31 -0800 (PST) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id yi8sm40731507pab.16.2014.01.21.22.18.28 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 21 Jan 2014 22:18:31 -0800 (PST) From: Sachin Kamat To: alsa-devel@alsa-project.org Cc: broonie@kernel.org, sbkim73@samsung.com, lgirdwood@gmail.com, tiwai@suse.de, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 7/7] ASoC: Samsung: smdk_wm8994: Fix unused variable warning Date: Wed, 22 Jan 2014 11:43:33 +0530 Message-Id: <1390371213-21643-8-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1390371213-21643-1-git-send-email-sachin.kamat@linaro.org> References: <1390371213-21643-1-git-send-email-sachin.kamat@linaro.org> MIME-Version: 1.0 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.45 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , ‘smdk_board_data’ is required only when OF is enabled. Move it to avoid the following build warning: sound/soc/samsung/smdk_wm8994.c:47:32: warning: ‘smdk_board_data’ defined but not used [-Wunused-variable] Signed-off-by: Sachin Kamat --- sound/soc/samsung/smdk_wm8994.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sound/soc/samsung/smdk_wm8994.c b/sound/soc/samsung/smdk_wm8994.c index 1d9641cc172a..a0268fc0a3d9 100644 --- a/sound/soc/samsung/smdk_wm8994.c +++ b/sound/soc/samsung/smdk_wm8994.c @@ -43,11 +43,6 @@ struct smdk_wm8994_data { int mclk1_rate; }; -/* Default SMDKs */ -static struct smdk_wm8994_data smdk_board_data = { - .mclk1_rate = SMDK_WM8994_FREQ, -}; - static int smdk_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) { @@ -153,6 +148,11 @@ static struct snd_soc_card smdk = { }; #ifdef CONFIG_OF +/* Default SMDKs */ +static struct smdk_wm8994_data smdk_board_data = { + .mclk1_rate = SMDK_WM8994_FREQ, +}; + static const struct of_device_id samsung_wm8994_of_match[] = { { .compatible = "samsung,smdk-wm8994", .data = &smdk_board_data }, {},