Skip to contentSkip to conversation

pata_acpi: fix build breakage if !CONFIG_PM

PATCH Applied Tejun Heo 2 participants 2 messages Oct 17, 2007 – Oct 18, 2007 libata

lore
Share & tools
lore

Tejun Heo

author
#0 lore raw

PATCH 1/1 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.

Cc Avuton Olrich <[email protected]>
---
 drivers/ata/pata_acpi.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/ata/pata_acpi.c +2 -0
index 5d3920f..0f6f7bc 100644
@@ -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)
Applied
#1 lore raw
Quoted 10 lines · Tejun Heo

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.

Cc Avuton Olrich <[email protected]>
---
 drivers/ata/pata_acpi.c |    2 ++
 1 file changed, 2 insertions(+)

applied