[PATCH] ahci_imx: Put #ifdef CONFIG_PM_SLEEP around suspend / resume functions

Marek Vasut marex at denx.de
Wed Mar 5 14:23:40 EST 2014


On Wednesday, March 05, 2014 at 08:17:49 PM, Hans de Goede wrote:
> 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 at samsung.com>
> Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie at samsung.com>
> Signed-off-by: Hans de Goede <hdegoede at redhat.com>

Obviously makes sense.

Acked-by: Marek Vasut <marex at denx.de>

Best regards,
Marek Vasut



More information about the linux-arm-kernel mailing list