mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-17 20:54:10 +00:00
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 <htejun@gmail.com> Cc: Avuton Olrich <avuton@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
d85714d81c
commit
8e2840e06d
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue