提交 8e2840e0 编写于 作者: T Tejun Heo 提交者: Jeff Garzik

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: NTejun Heo <htejun@gmail.com>
Cc: Avuton Olrich <avuton@gmail.com>
Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 d85714d8
...@@ -370,8 +370,10 @@ static struct pci_driver pacpi_pci_driver = { ...@@ -370,8 +370,10 @@ static struct pci_driver pacpi_pci_driver = {
.id_table = pacpi_pci_tbl, .id_table = pacpi_pci_tbl,
.probe = pacpi_init_one, .probe = pacpi_init_one,
.remove = ata_pci_remove_one, .remove = ata_pci_remove_one,
#ifdef CONFIG_PM
.suspend = ata_pci_device_suspend, .suspend = ata_pci_device_suspend,
.resume = ata_pci_device_resume, .resume = ata_pci_device_resume,
#endif
}; };
static int __init pacpi_init(void) static int __init pacpi_init(void)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册