diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-12-04 06:33:07 -0500 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-12-07 13:54:57 -0500 |
commit | 4577f77ba76127cd9e72e06f44d743894d34ac8b (patch) | |
tree | a6225061ab8d06d4bd1891c7cfad54897d275a97 /drivers/mmc | |
parent | 1a1f1f0495604d45e67a328fda80c1cb6a8d87d2 (diff) |
mmc: sdhci-s3c: Fix compilation warning
'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 <sachin.kamat@linaro.org>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | 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 99697696e7eb..82b7a7ad4217 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 = { | |||
375 | static void sdhci_s3c_notify_change(struct platform_device *dev, int state) | 375 | static void sdhci_s3c_notify_change(struct platform_device *dev, int state) |
376 | { | 376 | { |
377 | struct sdhci_host *host = platform_get_drvdata(dev); | 377 | struct sdhci_host *host = platform_get_drvdata(dev); |
378 | #ifdef CONFIG_PM_RUNTIME | ||
378 | struct sdhci_s3c *sc = sdhci_priv(host); | 379 | struct sdhci_s3c *sc = sdhci_priv(host); |
380 | #endif | ||
379 | unsigned long flags; | 381 | unsigned long flags; |
380 | 382 | ||
381 | if (host) { | 383 | if (host) { |