diff options
author | Hans de Goede <hdegoede@redhat.com> | 2014-03-05 14:17:49 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-03-06 14:31:13 -0500 |
commit | 46ce6b74fdec1a8a8e9b45597e6c7989441682bf (patch) | |
tree | be8dd6d26fe4c71dd579004522029d09e93764ee | |
parent | d2ec147a76d0e051db19d378cac3ee7721877717 (diff) |
ahci_imx: Put #ifdef CONFIG_PM_SLEEP around suspend / resume functions
This fixes the following warnings when CONFIG_PM_SLEEP is not set:
drivers/ata/ahci_imx.c:284:12: warning: ‘imx_ahci_suspend’ defined but not used [-Wunused-function]
drivers/ata/ahci_imx.c:299:12: warning: ‘imx_ahci_resume’ defined but not used [-Wunused-function]
Reported-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
-rw-r--r-- | drivers/ata/ahci_imx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ata/ahci_imx.c b/drivers/ata/ahci_imx.c index 3cb5d69581f1..497c7abe1c7d 100644 --- a/drivers/ata/ahci_imx.c +++ b/drivers/ata/ahci_imx.c | |||
@@ -281,6 +281,7 @@ static void ahci_imx_host_stop(struct ata_host *host) | |||
281 | imx_sata_disable(hpriv); | 281 | imx_sata_disable(hpriv); |
282 | } | 282 | } |
283 | 283 | ||
284 | #ifdef CONFIG_PM_SLEEP | ||
284 | static int imx_ahci_suspend(struct device *dev) | 285 | static int imx_ahci_suspend(struct device *dev) |
285 | { | 286 | { |
286 | struct ata_host *host = dev_get_drvdata(dev); | 287 | struct ata_host *host = dev_get_drvdata(dev); |
@@ -308,6 +309,7 @@ static int imx_ahci_resume(struct device *dev) | |||
308 | 309 | ||
309 | return ahci_platform_resume_host(dev); | 310 | return ahci_platform_resume_host(dev); |
310 | } | 311 | } |
312 | #endif | ||
311 | 313 | ||
312 | static SIMPLE_DEV_PM_OPS(ahci_imx_pm_ops, imx_ahci_suspend, imx_ahci_resume); | 314 | static SIMPLE_DEV_PM_OPS(ahci_imx_pm_ops, imx_ahci_suspend, imx_ahci_resume); |
313 | 315 | ||