From: Tejun Heo Date: Wed, 17 Oct 2007 06:24:16 +0000 (+0900) Subject: pata_acpi: fix build breakage if !CONFIG_PM X-Git-Tag: v2.6.24-rc1~289^2~4 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;ds=sidebyside;h=8e2840e06d7da7ae17b1fbc416155a40b22e00ad;p=linux-2.6 pata_acpi: fix build breakage if !CONFIG_PM There are configurations where CONFIG_ACPI but !CONFIG_PM. In this case, pata_acpi can be selected but won't build. Fix it. Reported by Avuton Olrich. Signed-off-by: Tejun Heo Cc: Avuton Olrich Signed-off-by: Jeff Garzik --- diff --git a/drivers/ata/pata_acpi.c b/drivers/ata/pata_acpi.c index 5d3920f6fd..0f6f7bcc3d 100644 --- a/drivers/ata/pata_acpi.c +++ b/drivers/ata/pata_acpi.c @@ -370,8 +370,10 @@ static struct pci_driver pacpi_pci_driver = { .id_table = pacpi_pci_tbl, .probe = pacpi_init_one, .remove = ata_pci_remove_one, +#ifdef CONFIG_PM .suspend = ata_pci_device_suspend, .resume = ata_pci_device_resume, +#endif }; static int __init pacpi_init(void)