diff options
Diffstat (limited to 'drivers/ata/pata_macio.c')
-rw-r--r-- | drivers/ata/pata_macio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ata/pata_macio.c b/drivers/ata/pata_macio.c index e5725edcf515..c28d0645e851 100644 --- a/drivers/ata/pata_macio.c +++ b/drivers/ata/pata_macio.c | |||
@@ -1311,7 +1311,7 @@ static int pata_macio_pci_attach(struct pci_dev *pdev, | |||
1311 | 1311 | ||
1312 | static void pata_macio_pci_detach(struct pci_dev *pdev) | 1312 | static void pata_macio_pci_detach(struct pci_dev *pdev) |
1313 | { | 1313 | { |
1314 | struct ata_host *host = dev_get_drvdata(&pdev->dev); | 1314 | struct ata_host *host = pci_get_drvdata(pdev); |
1315 | 1315 | ||
1316 | ata_host_detach(host); | 1316 | ata_host_detach(host); |
1317 | } | 1317 | } |
@@ -1320,14 +1320,14 @@ static void pata_macio_pci_detach(struct pci_dev *pdev) | |||
1320 | 1320 | ||
1321 | static int pata_macio_pci_suspend(struct pci_dev *pdev, pm_message_t mesg) | 1321 | static int pata_macio_pci_suspend(struct pci_dev *pdev, pm_message_t mesg) |
1322 | { | 1322 | { |
1323 | struct ata_host *host = dev_get_drvdata(&pdev->dev); | 1323 | struct ata_host *host = pci_get_drvdata(pdev); |
1324 | 1324 | ||
1325 | return pata_macio_do_suspend(host->private_data, mesg); | 1325 | return pata_macio_do_suspend(host->private_data, mesg); |
1326 | } | 1326 | } |
1327 | 1327 | ||
1328 | static int pata_macio_pci_resume(struct pci_dev *pdev) | 1328 | static int pata_macio_pci_resume(struct pci_dev *pdev) |
1329 | { | 1329 | { |
1330 | struct ata_host *host = dev_get_drvdata(&pdev->dev); | 1330 | struct ata_host *host = pci_get_drvdata(pdev); |
1331 | 1331 | ||
1332 | return pata_macio_do_resume(host->private_data); | 1332 | return pata_macio_do_resume(host->private_data); |
1333 | } | 1333 | } |