diff options
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 61572d8c78a..dc42ba1b46f 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 = { |