diff options
Diffstat (limited to 'drivers/ata/pata_rz1000.c')
-rw-r--r-- | drivers/ata/pata_rz1000.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/drivers/ata/pata_rz1000.c b/drivers/ata/pata_rz1000.c index a5e4dfe60b41..4a454a88aa9d 100644 --- a/drivers/ata/pata_rz1000.c +++ b/drivers/ata/pata_rz1000.c | |||
@@ -95,7 +95,7 @@ static int rz1000_init_one (struct pci_dev *pdev, const struct pci_device_id *en | |||
95 | printk_once(KERN_DEBUG DRV_NAME " version " DRV_VERSION "\n"); | 95 | printk_once(KERN_DEBUG DRV_NAME " version " DRV_VERSION "\n"); |
96 | 96 | ||
97 | if (rz1000_fifo_disable(pdev) == 0) | 97 | if (rz1000_fifo_disable(pdev) == 0) |
98 | return ata_pci_sff_init_one(pdev, ppi, &rz1000_sht, NULL); | 98 | return ata_pci_sff_init_one(pdev, ppi, &rz1000_sht, NULL, 0); |
99 | 99 | ||
100 | printk(KERN_ERR DRV_NAME ": failed to disable read-ahead on chipset..\n"); | 100 | printk(KERN_ERR DRV_NAME ": failed to disable read-ahead on chipset..\n"); |
101 | /* Not safe to use so skip */ | 101 | /* Not safe to use so skip */ |
@@ -105,11 +105,20 @@ static int rz1000_init_one (struct pci_dev *pdev, const struct pci_device_id *en | |||
105 | #ifdef CONFIG_PM | 105 | #ifdef CONFIG_PM |
106 | static int rz1000_reinit_one(struct pci_dev *pdev) | 106 | static int rz1000_reinit_one(struct pci_dev *pdev) |
107 | { | 107 | { |
108 | struct ata_host *host = dev_get_drvdata(&pdev->dev); | ||
109 | int rc; | ||
110 | |||
111 | rc = ata_pci_device_do_resume(pdev); | ||
112 | if (rc) | ||
113 | return rc; | ||
114 | |||
108 | /* If this fails on resume (which is a "cant happen" case), we | 115 | /* If this fails on resume (which is a "cant happen" case), we |
109 | must stop as any progress risks data loss */ | 116 | must stop as any progress risks data loss */ |
110 | if (rz1000_fifo_disable(pdev)) | 117 | if (rz1000_fifo_disable(pdev)) |
111 | panic("rz1000 fifo"); | 118 | panic("rz1000 fifo"); |
112 | return ata_pci_device_resume(pdev); | 119 | |
120 | ata_host_resume(host); | ||
121 | return 0; | ||
113 | } | 122 | } |
114 | #endif | 123 | #endif |
115 | 124 | ||