aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_amd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/pata_amd.c')
-rw-r--r--drivers/ata/pata_amd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/pata_amd.c b/drivers/ata/pata_amd.c
index 1206fa6b62ca..8d4d959a821c 100644
--- a/drivers/ata/pata_amd.c
+++ b/drivers/ata/pata_amd.c
@@ -574,7 +574,7 @@ static int amd_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
574 return ata_pci_bmdma_init_one(pdev, ppi, &amd_sht, hpriv, 0); 574 return ata_pci_bmdma_init_one(pdev, ppi, &amd_sht, hpriv, 0);
575} 575}
576 576
577#ifdef CONFIG_PM 577#ifdef CONFIG_PM_SLEEP
578static int amd_reinit_one(struct pci_dev *pdev) 578static int amd_reinit_one(struct pci_dev *pdev)
579{ 579{
580 struct ata_host *host = pci_get_drvdata(pdev); 580 struct ata_host *host = pci_get_drvdata(pdev);
@@ -625,7 +625,7 @@ static struct pci_driver amd_pci_driver = {
625 .id_table = amd, 625 .id_table = amd,
626 .probe = amd_init_one, 626 .probe = amd_init_one,
627 .remove = ata_pci_remove_one, 627 .remove = ata_pci_remove_one,
628#ifdef CONFIG_PM 628#ifdef CONFIG_PM_SLEEP
629 .suspend = ata_pci_device_suspend, 629 .suspend = ata_pci_device_suspend,
630 .resume = amd_reinit_one, 630 .resume = amd_reinit_one,
631#endif 631#endif