From patchwork Sun Aug 23 02:07:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 7056821 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 905609F2B4 for ; Sun, 23 Aug 2015 02:07:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B35A2206FB for ; Sun, 23 Aug 2015 02:07:33 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 7DFA0206F6 for ; Sun, 23 Aug 2015 02:07:32 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id B69FE26047F; Sun, 23 Aug 2015 04:07:30 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 1294626046A; Sun, 23 Aug 2015 04:07:29 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 9DB75260470; Sun, 23 Aug 2015 04:07:27 +0200 (CEST) Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) by alsa0.perex.cz (Postfix) with ESMTP id 56D50260469 for ; Sun, 23 Aug 2015 04:07:20 +0200 (CEST) Received: by pacgr6 with SMTP id gr6so3808979pac.0 for ; Sat, 22 Aug 2015 19:07:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:content-type :mime-version:content-transfer-encoding; bh=y1mAZeJTpJVaN6hTgtk31LLuZMJw/yvo4zpWXePo/tc=; b=OChD2GkoXkU7Qwju3LEFI3f337qatDYOUzKXJ4Zb0ZBVDU81e+xbt/OttdUdGit5zc tIYTjrdEhYSVKvobYBwj2s4YZYqk9Y/n5cypPYFRrlcdZA37SqBk0F2w+jonRfkArByk 1F4jna4+LJCYHKz55E9fjo1JLYBcdKjFRIA2u3TrS9WIfPswTmk6oWfRDENrnx2n4Xrb lFREzEKIysHXSGqHBxSLpOk2Meqq+qrcVp8PN3gONpM2rPfvj+8JeNbZ+ieKlsPoGV/+ Du+OnRtTCveOSj8N/pj9i8z0xn34DGF2sAoxXlomxMHOQYFHkYeLngTiJfHVPvsgANNG rBaw== X-Gm-Message-State: ALoCoQlbJ0AqbDR5aguRhxTLE2GkefQIk643vexGNExM4HvKajrL9jmg4S4ymisYO3XUVjJwoU0u X-Received: by 10.66.248.162 with SMTP id yn2mr32392120pac.85.1440295638725; Sat, 22 Aug 2015 19:07:18 -0700 (PDT) Received: from phoenix.local (218-164-29-193.dynamic.hinet.net. [218.164.29.193]) by smtp.gmail.com with ESMTPSA id v6sm3556848pdp.18.2015.08.22.19.07.15 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 22 Aug 2015 19:07:17 -0700 (PDT) Message-ID: <1440295633.12294.0.camel@ingics.com> From: Axel Lin To: Mark Brown Date: Sun, 23 Aug 2015 10:07:13 +0800 X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 Mime-Version: 1.0 Cc: Vaishali Thakkar , alsa-devel@alsa-project.org, Liam Girdwood Subject: [alsa-devel] [PATCH] ASoC: tegra: Fix unused variable 'spdif' warning X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Fix below build warning: CC [M] sound/soc/tegra/tegra20_spdif.o sound/soc/tegra/tegra20_spdif.c: In function 'tegra20_spdif_platform_remove': sound/soc/tegra/tegra20_spdif.c:361:24: warning: unused variable 'spdif' [-Wunused-variable] Signed-off-by: Axel Lin Reviewed-by: Vaishali Thakkar --- sound/soc/tegra/tegra20_spdif.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sound/soc/tegra/tegra20_spdif.c b/sound/soc/tegra/tegra20_spdif.c index 66237bc..0809b1e 100644 --- a/sound/soc/tegra/tegra20_spdif.c +++ b/sound/soc/tegra/tegra20_spdif.c @@ -358,8 +358,6 @@ err_pm_disable: static int tegra20_spdif_platform_remove(struct platform_device *pdev) { - struct tegra20_spdif *spdif = dev_get_drvdata(&pdev->dev); - pm_runtime_disable(&pdev->dev); if (!pm_runtime_status_suspended(&pdev->dev)) tegra20_spdif_runtime_suspend(&pdev->dev);