]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:17:19 +0000 (21:17 -0600)
commit1f16edd9185e49c9d496d12373e23b1f6603b9f1
treed6a28a81592ebbdac4e3fb86c2dde99237ce3752
parent3d5b350ac86fa8c235513b44cac44f86596a7e61
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>
(cherry picked from commit 46ce6b74fdec1a8a8e9b45597e6c7989441682bf)
drivers/ata/ahci_imx.c