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_optidma.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_optidma.c')
-rw-r--r-- | drivers/ata/pata_optidma.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/ata/pata_optidma.c b/drivers/ata/pata_optidma.c index b76c976e505c..9764907e8a13 100644 --- a/drivers/ata/pata_optidma.c +++ b/drivers/ata/pata_optidma.c | |||
@@ -360,8 +360,10 @@ static struct scsi_host_template optidma_sht = { | |||
360 | .slave_configure = ata_scsi_slave_config, | 360 | .slave_configure = ata_scsi_slave_config, |
361 | .slave_destroy = ata_scsi_slave_destroy, | 361 | .slave_destroy = ata_scsi_slave_destroy, |
362 | .bios_param = ata_std_bios_param, | 362 | .bios_param = ata_std_bios_param, |
363 | #ifdef CONFIG_PM | ||
363 | .resume = ata_scsi_device_resume, | 364 | .resume = ata_scsi_device_resume, |
364 | .suspend = ata_scsi_device_suspend, | 365 | .suspend = ata_scsi_device_suspend, |
366 | #endif | ||
365 | }; | 367 | }; |
366 | 368 | ||
367 | static struct ata_port_operations optidma_port_ops = { | 369 | static struct ata_port_operations optidma_port_ops = { |
@@ -524,8 +526,10 @@ static struct pci_driver optidma_pci_driver = { | |||
524 | .id_table = optidma, | 526 | .id_table = optidma, |
525 | .probe = optidma_init_one, | 527 | .probe = optidma_init_one, |
526 | .remove = ata_pci_remove_one, | 528 | .remove = ata_pci_remove_one, |
529 | #ifdef CONFIG_PM | ||
527 | .suspend = ata_pci_device_suspend, | 530 | .suspend = ata_pci_device_suspend, |
528 | .resume = ata_pci_device_resume, | 531 | .resume = ata_pci_device_resume, |
532 | #endif | ||
529 | }; | 533 | }; |
530 | 534 | ||
531 | static int __init optidma_init(void) | 535 | static int __init optidma_init(void) |