aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_pdc2027x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/pata_pdc2027x.c')
-rw-r--r--drivers/ata/pata_pdc2027x.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ata/pata_pdc2027x.c b/drivers/ata/pata_pdc2027x.c
index 1151f23177bb..4d06a5cda987 100644
--- a/drivers/ata/pata_pdc2027x.c
+++ b/drivers/ata/pata_pdc2027x.c
@@ -62,7 +62,7 @@ enum {
62}; 62};
63 63
64static int pdc2027x_init_one(struct pci_dev *pdev, const struct pci_device_id *ent); 64static int pdc2027x_init_one(struct pci_dev *pdev, const struct pci_device_id *ent);
65#ifdef CONFIG_PM 65#ifdef CONFIG_PM_SLEEP
66static int pdc2027x_reinit_one(struct pci_dev *pdev); 66static int pdc2027x_reinit_one(struct pci_dev *pdev);
67#endif 67#endif
68static int pdc2027x_prereset(struct ata_link *link, unsigned long deadline); 68static int pdc2027x_prereset(struct ata_link *link, unsigned long deadline);
@@ -128,7 +128,7 @@ static struct pci_driver pdc2027x_pci_driver = {
128 .id_table = pdc2027x_pci_tbl, 128 .id_table = pdc2027x_pci_tbl,
129 .probe = pdc2027x_init_one, 129 .probe = pdc2027x_init_one,
130 .remove = ata_pci_remove_one, 130 .remove = ata_pci_remove_one,
131#ifdef CONFIG_PM 131#ifdef CONFIG_PM_SLEEP
132 .suspend = ata_pci_device_suspend, 132 .suspend = ata_pci_device_suspend,
133 .resume = pdc2027x_reinit_one, 133 .resume = pdc2027x_reinit_one,
134#endif 134#endif
@@ -761,7 +761,7 @@ static int pdc2027x_init_one(struct pci_dev *pdev,
761 IRQF_SHARED, &pdc2027x_sht); 761 IRQF_SHARED, &pdc2027x_sht);
762} 762}
763 763
764#ifdef CONFIG_PM 764#ifdef CONFIG_PM_SLEEP
765static int pdc2027x_reinit_one(struct pci_dev *pdev) 765static int pdc2027x_reinit_one(struct pci_dev *pdev)
766{ 766{
767 struct ata_host *host = pci_get_drvdata(pdev); 767 struct ata_host *host = pci_get_drvdata(pdev);