]> err.no Git - linux-2.6/commitdiff
pata_acpi: fix build breakage if !CONFIG_PM
authorTejun Heo <htejun@gmail.com>
Wed, 17 Oct 2007 06:24:16 +0000 (15:24 +0900)
committerJeff Garzik <jeff@garzik.org>
Thu, 18 Oct 2007 00:48:30 +0000 (20:48 -0400)
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 <htejun@gmail.com>
Cc: Avuton Olrich <avuton@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/pata_acpi.c

index 5d3920f6fd690f0c3a145865026dfadfc6bc790d..0f6f7bcc3defa8e39bdb235bcdd7b18e086b4614 100644 (file)
@@ -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)