From patchwork Tue Dec 4 11:33:07 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 1837291 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 788EA3FC64 for ; Tue, 4 Dec 2012 11:39:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751144Ab2LDLjy (ORCPT ); Tue, 4 Dec 2012 06:39:54 -0500 Received: from mail-pb0-f46.google.com ([209.85.160.46]:38270 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750765Ab2LDLjy (ORCPT ); Tue, 4 Dec 2012 06:39:54 -0500 Received: by mail-pb0-f46.google.com with SMTP id wy7so2778207pbc.19 for ; Tue, 04 Dec 2012 03:39:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:mime-version :content-type:content-transfer-encoding:x-gm-message-state; bh=b3FFUVRVwIffC7E7zRwGKYC23xn0WyaKRSYsCyQNOKI=; b=kIqa/GpkRYhKnQz3UNeweR6JoJUZLZo5YSymTUxvjBXNrHQG+SQB+N8rdkBEtk1gjF 7mXA9GAUgoxIwXBCrC6ZL64Mdl3/VDlmlO68y1EvJU7L3WOmZEf7oio3cDAveYJav4B9 fvbQKZsNBVeJUgTCkykRxZGUxQQw6dwHWHUfQMjxAY55aQJOSexGFZwC4paGzBqUCxaZ UenM9jFrewm60tvQw8XUpvw0E/d2e1N1b978vV68a2G9TYx9u+tn5aM3Y63jBP1XxqW4 hlZIQQIU3XnFVzRjKyp8W+C2Njq+VWn4LS0smbAMA+vLHJSAv3tJDhcnpEH1BbMw1jC4 K3Cg== Received: by 10.68.213.233 with SMTP id nv9mr37571008pbc.155.1354621193828; Tue, 04 Dec 2012 03:39:53 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id sk1sm895886pbc.0.2012.12.04.03.39.50 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 04 Dec 2012 03:39:53 -0800 (PST) From: Sachin Kamat To: linux-mmc@vger.kernel.org Cc: cjb@laptop.org, ben-linux@fluff.org, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/1] mmc: sdhci-s3c: Fix compilation warning Date: Tue, 4 Dec 2012 17:03:07 +0530 Message-Id: <1354620787-20575-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQlsDtj9eCzX4V6FHBaUoXuKVJfTTxFtome7JuxYEvVIfaBZTnsMOQ7roiL2vtMGGNB/6EI+ Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org 'sc' is used only when CONFIG_PM_RUNTIME is defined. Hence define it conditionally. Silences the following warning: drivers/mmc/host/sdhci-s3c.c: In function ‘sdhci_s3c_notify_change’: drivers/mmc/host/sdhci-s3c.c:378:20: warning: unused variable ‘sc’ [-Wunused-variable] Signed-off-by: Sachin Kamat Acked-by: Jaehoon Chung --- drivers/mmc/host/sdhci-s3c.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/host/sdhci-s3c.c b/drivers/mmc/host/sdhci-s3c.c index 7ea3aea..82a8de1 100644 --- a/drivers/mmc/host/sdhci-s3c.c +++ b/drivers/mmc/host/sdhci-s3c.c @@ -375,7 +375,9 @@ static struct sdhci_ops sdhci_s3c_ops = { static void sdhci_s3c_notify_change(struct platform_device *dev, int state) { struct sdhci_host *host = platform_get_drvdata(dev); +#ifdef CONFIG_PM_RUNTIME struct sdhci_s3c *sc = sdhci_priv(host); +#endif unsigned long flags; if (host) {