diff options
Diffstat (limited to 'drivers/ata/pata_ali.c')
-rw-r--r-- | drivers/ata/pata_ali.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/pata_ali.c b/drivers/ata/pata_ali.c index 1b7b2ccabcff..d19cd88ed2d3 100644 --- a/drivers/ata/pata_ali.c +++ b/drivers/ata/pata_ali.c | |||
@@ -589,7 +589,7 @@ static int ali_init_one(struct pci_dev *pdev, const struct pci_device_id *id) | |||
589 | return ata_pci_bmdma_init_one(pdev, ppi, &ali_sht, NULL, 0); | 589 | return ata_pci_bmdma_init_one(pdev, ppi, &ali_sht, NULL, 0); |
590 | } | 590 | } |
591 | 591 | ||
592 | #ifdef CONFIG_PM | 592 | #ifdef CONFIG_PM_SLEEP |
593 | static int ali_reinit_one(struct pci_dev *pdev) | 593 | static int ali_reinit_one(struct pci_dev *pdev) |
594 | { | 594 | { |
595 | struct ata_host *host = pci_get_drvdata(pdev); | 595 | struct ata_host *host = pci_get_drvdata(pdev); |
@@ -616,7 +616,7 @@ static struct pci_driver ali_pci_driver = { | |||
616 | .id_table = ali, | 616 | .id_table = ali, |
617 | .probe = ali_init_one, | 617 | .probe = ali_init_one, |
618 | .remove = ata_pci_remove_one, | 618 | .remove = ata_pci_remove_one, |
619 | #ifdef CONFIG_PM | 619 | #ifdef CONFIG_PM_SLEEP |
620 | .suspend = ata_pci_device_suspend, | 620 | .suspend = ata_pci_device_suspend, |
621 | .resume = ali_reinit_one, | 621 | .resume = ali_reinit_one, |
622 | #endif | 622 | #endif |