Skip to contentSkip to conversation

AHCI: fix build warning when PM && !PM_SLEEP

PATCH New Daniel J Blueman 1 participant 1 message Nov 19, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 AHCI: fix build warning when PM && !PM_SLEEP

Change the conditional around ahci_suspend/resume to the same as the SIMPLE_DEV_PM_OPS macro that uses these functions, fixing an unused build warning.

---
 drivers/ata/ahci_platform.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ata/ahci_platform.c +1 -1
index b1ae480..b7078af 100644
@@ -238,7 +238,7 @@ static int __devexit ahci_remove(struct platform_device *pdev)
 	return 0;
 }
 
-#ifdef CONFIG_PM
+#ifdef CONFIG_PM_SLEEP
 static int ahci_suspend(struct device *dev)
 {
 	struct ahci_platform_data *pdata = dev_get_platdata(dev);
Signature · 1 line
1.7.10.4