Skip to content

Commit 4577f77

Browse files
Sachin Kamatcjb
authored andcommitted
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>
1 parent 1a1f1f0 commit 4577f77

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/mmc/host/sdhci-s3c.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,9 @@ static struct sdhci_ops sdhci_s3c_ops = {
375375
static void sdhci_s3c_notify_change(struct platform_device *dev, int state)
376376
{
377377
struct sdhci_host *host = platform_get_drvdata(dev);
378+
#ifdef CONFIG_PM_RUNTIME
378379
struct sdhci_s3c *sc = sdhci_priv(host);
380+
#endif
379381
unsigned long flags;
380382

381383
if (host) {

0 commit comments

Comments
 (0)