mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]> Acked-by: Jaehoon Chung <[email protected]> Signed-off-by: Chris Ball <[email protected]>
This commit is contained in:
parent
1a1f1f0495
commit
4577f77ba7
1 changed files with 2 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue