diff options
author | Tejun Heo <htejun@gmail.com> | 2007-03-02 03:31:26 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-03-02 18:30:35 -0500 |
commit | 438ac6d5e3f8106a6bd1a5682c508d660294a85d (patch) | |
tree | 759aad55bb9850fe21709e12ca79cbdb3bf881f2 /drivers/ata/ata_piix.c | |
parent | b23ff24436c97fb26428f3a337faf189292cc307 (diff) |
libata: add missing CONFIG_PM in LLDs
Add missing #ifdef CONFIG_PM conditionals around all PM related parts
in libata LLDs.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/ata_piix.c')
-rw-r--r-- | drivers/ata/ata_piix.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/ata/ata_piix.c b/drivers/ata/ata_piix.c index 61572d8c78ad..dc42ba1b46f7 100644 --- a/drivers/ata/ata_piix.c +++ b/drivers/ata/ata_piix.c | |||
@@ -253,8 +253,10 @@ static struct pci_driver piix_pci_driver = { | |||
253 | .id_table = piix_pci_tbl, | 253 | .id_table = piix_pci_tbl, |
254 | .probe = piix_init_one, | 254 | .probe = piix_init_one, |
255 | .remove = ata_pci_remove_one, | 255 | .remove = ata_pci_remove_one, |
256 | #ifdef CONFIG_PM | ||
256 | .suspend = ata_pci_device_suspend, | 257 | .suspend = ata_pci_device_suspend, |
257 | .resume = ata_pci_device_resume, | 258 | .resume = ata_pci_device_resume, |
259 | #endif | ||
258 | }; | 260 | }; |
259 | 261 | ||
260 | static struct scsi_host_template piix_sht = { | 262 | static struct scsi_host_template piix_sht = { |
@@ -273,8 +275,10 @@ static struct scsi_host_template piix_sht = { | |||
273 | .slave_configure = ata_scsi_slave_config, | 275 | .slave_configure = ata_scsi_slave_config, |
274 | .slave_destroy = ata_scsi_slave_destroy, | 276 | .slave_destroy = ata_scsi_slave_destroy, |
275 | .bios_param = ata_std_bios_param, | 277 | .bios_param = ata_std_bios_param, |
278 | #ifdef CONFIG_PM | ||
276 | .resume = ata_scsi_device_resume, | 279 | .resume = ata_scsi_device_resume, |
277 | .suspend = ata_scsi_device_suspend, | 280 | .suspend = ata_scsi_device_suspend, |
281 | #endif | ||
278 | }; | 282 | }; |
279 | 283 | ||
280 | static const struct ata_port_operations piix_pata_ops = { | 284 | static const struct ata_port_operations piix_pata_ops = { |