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/pata_cypress.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/pata_cypress.c')
-rw-r--r-- | drivers/ata/pata_cypress.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/ata/pata_cypress.c b/drivers/ata/pata_cypress.c index 63f48f08763d..f69dde5f7066 100644 --- a/drivers/ata/pata_cypress.c +++ b/drivers/ata/pata_cypress.c | |||
@@ -136,8 +136,10 @@ static struct scsi_host_template cy82c693_sht = { | |||
136 | .slave_configure = ata_scsi_slave_config, | 136 | .slave_configure = ata_scsi_slave_config, |
137 | .slave_destroy = ata_scsi_slave_destroy, | 137 | .slave_destroy = ata_scsi_slave_destroy, |
138 | .bios_param = ata_std_bios_param, | 138 | .bios_param = ata_std_bios_param, |
139 | #ifdef CONFIG_PM | ||
139 | .resume = ata_scsi_device_resume, | 140 | .resume = ata_scsi_device_resume, |
140 | .suspend = ata_scsi_device_suspend, | 141 | .suspend = ata_scsi_device_suspend, |
142 | #endif | ||
141 | }; | 143 | }; |
142 | 144 | ||
143 | static struct ata_port_operations cy82c693_port_ops = { | 145 | static struct ata_port_operations cy82c693_port_ops = { |
@@ -206,8 +208,10 @@ static struct pci_driver cy82c693_pci_driver = { | |||
206 | .id_table = cy82c693, | 208 | .id_table = cy82c693, |
207 | .probe = cy82c693_init_one, | 209 | .probe = cy82c693_init_one, |
208 | .remove = ata_pci_remove_one, | 210 | .remove = ata_pci_remove_one, |
211 | #ifdef CONFIG_PM | ||
209 | .suspend = ata_pci_device_suspend, | 212 | .suspend = ata_pci_device_suspend, |
210 | .resume = ata_pci_device_resume, | 213 | .resume = ata_pci_device_resume, |
214 | #endif | ||
211 | }; | 215 | }; |
212 | 216 | ||
213 | static int __init cy82c693_init(void) | 217 | static int __init cy82c693_init(void) |