ahci_imx: Put #ifdef CONFIG_PM_SLEEP around suspend / resume functions
authorHans de Goede <hdegoede@redhat.com>
Wed, 5 Mar 2014 19:17:49 +0000 (20:17 +0100)
committerTejun Heo <tj@kernel.org>
Thu, 6 Mar 2014 19:31:13 +0000 (14:31 -0500)
commit46ce6b74fdec1a8a8e9b45597e6c7989441682bf
treebe8dd6d26fe4c71dd579004522029d09e93764ee
parentd2ec147a76d0e051db19d378cac3ee7721877717
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>
drivers/ata/ahci_imx.c