From: olof@lixom.net (Olof Johansson) CONFIG_PM=n compile fix. Signed-off-by: Olof Johansson Signed-off-by: Andrew Morton --- drivers/ata/ahci.c | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff -puN drivers/ata/ahci.c~libata-config_pm=n-compile-fix drivers/ata/ahci.c --- a/drivers/ata/ahci.c~libata-config_pm=n-compile-fix +++ a/drivers/ata/ahci.c @@ -1493,6 +1493,14 @@ static void ahci_post_internal_cmd(struc } } +static int ahci_port_resume(struct ata_port *ap) +{ + ahci_power_up(ap); + ahci_start_port(ap); + + return 0; +} + #ifdef CONFIG_PM static int ahci_port_suspend(struct ata_port *ap, pm_message_t mesg) { @@ -1510,14 +1518,6 @@ static int ahci_port_suspend(struct ata_ return rc; } -static int ahci_port_resume(struct ata_port *ap) -{ - ahci_power_up(ap); - ahci_start_port(ap); - - return 0; -} - static int ahci_pci_device_suspend(struct pci_dev *pdev, pm_message_t mesg) { struct ata_host *host = dev_get_drvdata(&pdev->dev); _