diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-06-03 01:05:36 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-06-03 01:22:03 -0400 |
commit | 0a86e1c857134efe2cdb31d74bc7ea21721db494 (patch) | |
tree | fe658d32cef1acea7363120160874d4795ac1493 | |
parent | f6e984e63638e3bfb0f13f603a0e972a6da07deb (diff) |
ata: use pci_get_drvdata()
Use the wrapper function for getting the driver data using pci_dev
instead of using dev_get_drvdata() with &pdev->dev, so we can directly
pass a struct pci_dev. This is a purely cosmetic change.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
30 files changed, 37 insertions, 37 deletions
diff --git a/drivers/ata/acard-ahci.c b/drivers/ata/acard-ahci.c index 4e94ba29cb8d..43365bb59d61 100644 --- a/drivers/ata/acard-ahci.c +++ b/drivers/ata/acard-ahci.c | |||
@@ -128,7 +128,7 @@ static struct pci_driver acard_ahci_pci_driver = { | |||
128 | #ifdef CONFIG_PM | 128 | #ifdef CONFIG_PM |
129 | static int acard_ahci_pci_device_suspend(struct pci_dev *pdev, pm_message_t mesg) | 129 | static int acard_ahci_pci_device_suspend(struct pci_dev *pdev, pm_message_t mesg) |
130 | { | 130 | { |
131 | struct ata_host *host = dev_get_drvdata(&pdev->dev); | 131 | struct ata_host *host = pci_get_drvdata(pdev); |
132 | struct ahci_host_priv *hpriv = host->private_data; | 132 | struct ahci_host_priv *hpriv = host->private_data; |
133 | void __iomem *mmio = hpriv->mmio; | 133 | void __iomem *mmio = hpriv->mmio; |
134 | u32 ctl; | 134 | u32 ctl; |
@@ -156,7 +156,7 @@ static int acard_ahci_pci_device_suspend(struct pci_dev *pdev, pm_message_t mesg | |||
156 | 156 | ||
157 | static int acard_ahci_pci_device_resume(struct pci_dev *pdev) | 157 | static int acard_ahci_pci_device_resume(struct pci_dev *pdev) |
158 | { | 158 | { |
159 | struct ata_host *host = dev_get_drvdata(&pdev->dev); | 159 | struct ata_host *host = pci_get_drvdata(pdev); |
160 | int rc; | 160 | int rc; |
161 | 161 | ||
162 | rc = ata_pci_device_do_resume(pdev); | 162 | rc = ata_pci_device_do_resume(pdev); |
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index 4d1c672d1702..da45325874d4 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c | |||
@@ -616,7 +616,7 @@ static int ahci_p5wdh_hardreset(struct ata_link *link, unsigned int *class, | |||
616 | #ifdef CONFIG_PM | 616 | #ifdef CONFIG_PM |
617 | static int ahci_pci_device_suspend(struct pci_dev *pdev, pm_message_t mesg) | 617 | static int ahci_pci_device_suspend(struct pci_dev *pdev, pm_message_t mesg) |
618 | { | 618 | { |
619 | struct ata_host *host = dev_get_drvdata(&pdev->dev); | 619 | struct ata_host *host = pci_get_drvdata(pdev); |
620 | struct ahci_host_priv *hpriv = host->private_data; | 620 | struct ahci_host_priv *hpriv = host->private_data; |
621 | void __iomem *mmio = hpriv->mmio; | 621 | void __iomem *mmio = hpriv->mmio; |
622 | u32 ctl; | 622 | u32 ctl; |
@@ -644,7 +644,7 @@ static int ahci_pci_device_suspend(struct pci_dev *pdev, pm_message_t mesg) | |||
644 | 644 | ||
645 | static int ahci_pci_device_resume(struct pci_dev *pdev) | 645 | static int ahci_pci_device_resume(struct pci_dev *pdev) |
646 | { | 646 | { |
647 | struct ata_host *host = dev_get_drvdata(&pdev->dev); | 647 | struct ata_host *host = pci_get_drvdata(pdev); |
648 | int rc; | 648 | int rc; |
649 | 649 | ||
650 | rc = ata_pci_device_do_resume(pdev); | 650 | rc = ata_pci_device_do_resume(pdev); |
diff --git a/drivers/ata/ata_piix.c b/drivers/ata/ata_piix.c index 2f48123d74c4..cab2d3a81e96 100644 --- a/drivers/ata/ata_piix.c +++ b/drivers/ata/ata_piix.c | |||
@@ -988,7 +988,7 @@ static int piix_broken_suspend(void) | |||
988 | 988 | ||
989 | static int piix_pci_device_suspend(struct pci_dev *pdev, pm_message_t mesg) | 989 | static int piix_pci_device_suspend(struct pci_dev *pdev, pm_message_t mesg) |
990 | { | 990 | { |
991 | struct ata_host *host = dev_get_drvdata(&pdev->dev); | 991 | struct ata_host *host = pci_get_drvdata(pdev); |
992 | unsigned long flags; | 992 | unsigned long flags; |
993 | int rc = 0; | 993 | int rc = 0; |
994 | 994 | ||
@@ -1023,7 +1023,7 @@ static int piix_pci_device_suspend(struct pci_dev *pdev, pm_message_t mesg) | |||
1023 | 1023 | ||
1024 | static int piix_pci_device_resume(struct pci_dev *pdev) | 1024 | static int piix_pci_device_resume(struct pci_dev *pdev) |
1025 | { | 1025 | { |
1026 | struct ata_host *host = dev_get_drvdata(&pdev->dev); | 1026 | struct ata_host *host = pci_get_drvdata(pdev); |
1027 | unsigned long flags; | 1027 | unsigned long flags; |
1028 | int rc; | 1028 | int rc; |
1029 | 1029 | ||
@@ -1736,7 +1736,7 @@ static int piix_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
1736 | 1736 | ||
1737 | static void piix_remove_one(struct pci_dev *pdev) | 1737 | static void piix_remove_one(struct pci_dev *pdev) |
1738 | { | 1738 | { |
1739 | struct ata_host *host = dev_get_drvdata(&pdev->dev); | 1739 | struct ata_host *host = pci_get_drvdata(pdev); |
1740 | struct piix_host_priv *hpriv = host->private_data; | 1740 | struct piix_host_priv *hpriv = host->private_data; |
1741 | 1741 | ||
1742 | pci_write_config_dword(pdev, PIIX_IOCFG, hpriv->saved_iocfg); | 1742 | pci_write_config_dword(pdev, PIIX_IOCFG, hpriv->saved_iocfg); |
diff --git a/drivers/ata/pata_ali.c b/drivers/ata/pata_ali.c index 61da0694aecd..1b7b2ccabcff 100644 --- a/drivers/ata/pata_ali.c +++ b/drivers/ata/pata_ali.c | |||
@@ -592,7 +592,7 @@ static int ali_init_one(struct pci_dev *pdev, const struct pci_device_id *id) | |||
592 | #ifdef CONFIG_PM | 592 | #ifdef CONFIG_PM |
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 = dev_get_drvdata(&pdev->dev); | 595 | struct ata_host *host = pci_get_drvdata(pdev); |
596 | int rc; | 596 | int rc; |
597 | 597 | ||
598 | rc = ata_pci_device_do_resume(pdev); | 598 | rc = ata_pci_device_do_resume(pdev); |
diff --git a/drivers/ata/pata_amd.c b/drivers/ata/pata_amd.c index 82a08922afcd..d23e2b3ca0b6 100644 --- a/drivers/ata/pata_amd.c +++ b/drivers/ata/pata_amd.c | |||
@@ -578,7 +578,7 @@ static int amd_init_one(struct pci_dev *pdev, const struct pci_device_id *id) | |||
578 | #ifdef CONFIG_PM | 578 | #ifdef CONFIG_PM |
579 | static int amd_reinit_one(struct pci_dev *pdev) | 579 | static int amd_reinit_one(struct pci_dev *pdev) |
580 | { | 580 | { |
581 | struct ata_host *host = dev_get_drvdata(&pdev->dev); | 581 | struct ata_host *host = pci_get_drvdata(pdev); |
582 | int rc; | 582 | int rc; |
583 | 583 | ||
584 | rc = ata_pci_device_do_resume(pdev); | 584 | rc = ata_pci_device_do_resume(pdev); |
diff --git a/drivers/ata/pata_artop.c b/drivers/ata/pata_artop.c index 74b215c09b21..1581dee2967a 100644 --- a/drivers/ata/pata_artop.c +++ b/drivers/ata/pata_artop.c | |||
@@ -426,7 +426,7 @@ static const struct pci_device_id artop_pci_tbl[] = { | |||
426 | #ifdef CONFIG_PM | 426 | #ifdef CONFIG_PM |
427 | static int atp8xx_reinit_one(struct pci_dev *pdev) | 427 | static int atp8xx_reinit_one(struct pci_dev *pdev) |
428 | { | 428 | { |
429 | struct ata_host *host = dev_get_drvdata(&pdev->dev); | 429 | struct ata_host *host = pci_get_drvdata(pdev); |
430 | int rc; | 430 | int rc; |
431 | 431 | ||
432 | rc = ata_pci_device_do_resume(pdev); | 432 | rc = ata_pci_device_do_resume(pdev); |
diff --git a/drivers/ata/pata_atp867x.c b/drivers/ata/pata_atp867x.c index 041f50d53240..2ca5026f2c15 100644 --- a/drivers/ata/pata_atp867x.c +++ b/drivers/ata/pata_atp867x.c | |||
@@ -534,7 +534,7 @@ err_out: | |||
534 | #ifdef CONFIG_PM | 534 | #ifdef CONFIG_PM |
535 | static int atp867x_reinit_one(struct pci_dev *pdev) | 535 | static int atp867x_reinit_one(struct pci_dev *pdev) |
536 | { | 536 | { |
537 | struct ata_host *host = dev_get_drvdata(&pdev->dev); | 537 | struct ata_host *host = pci_get_drvdata(pdev); |
538 | int rc; | 538 | int rc; |
539 | 539 | ||
540 | rc = ata_pci_device_do_resume(pdev); | 540 | rc = ata_pci_device_do_resume(pdev); |
diff --git a/drivers/ata/pata_cmd640.c b/drivers/ata/pata_cmd640.c index 504b98b58e19..8fb69e5ca1b7 100644 --- a/drivers/ata/pata_cmd640.c +++ b/drivers/ata/pata_cmd640.c | |||
@@ -235,7 +235,7 @@ static int cmd640_init_one(struct pci_dev *pdev, const struct pci_device_id *id) | |||
235 | #ifdef CONFIG_PM | 235 | #ifdef CONFIG_PM |
236 | static int cmd640_reinit_one(struct pci_dev *pdev) | 236 | static int cmd640_reinit_one(struct pci_dev *pdev) |
237 | { | 237 | { |
238 | struct ata_host *host = dev_get_drvdata(&pdev->dev); | 238 | struct ata_host *host = pci_get_drvdata(pdev); |
239 | int rc; | 239 | int rc; |
240 | 240 | ||
241 | rc = ata_pci_device_do_resume(pdev); | 241 | rc = ata_pci_device_do_resume(pdev); |
diff --git a/drivers/ata/pata_cmd64x.c b/drivers/ata/pata_cmd64x.c index 2949cfc2dd31..1275a8d4dedc 100644 --- a/drivers/ata/pata_cmd64x.c +++ b/drivers/ata/pata_cmd64x.c | |||
@@ -491,7 +491,7 @@ static int cmd64x_init_one(struct pci_dev *pdev, const struct pci_device_id *id) | |||
491 | #ifdef CONFIG_PM | 491 | #ifdef CONFIG_PM |
492 | static int cmd64x_reinit_one(struct pci_dev *pdev) | 492 | static int cmd64x_reinit_one(struct pci_dev *pdev) |
493 | { | 493 | { |
494 | struct ata_host *host = dev_get_drvdata(&pdev->dev); | 494 | struct ata_host *host = pci_get_drvdata(pdev); |
495 | int rc; | 495 | int rc; |
496 | 496 | ||
497 | rc = ata_pci_device_do_resume(pdev); | 497 | rc = ata_pci_device_do_resume(pdev); |
diff --git a/drivers/ata/pata_cs5520.c b/drivers/ata/pata_cs5520.c index bfcf377e8f77..f10baabbf5db 100644 --- a/drivers/ata/pata_cs5520.c +++ b/drivers/ata/pata_cs5520.c | |||
@@ -241,7 +241,7 @@ static int cs5520_init_one(struct pci_dev *pdev, const struct pci_device_id *id) | |||
241 | 241 | ||
242 | static int cs5520_reinit_one(struct pci_dev *pdev) | 242 | static int cs5520_reinit_one(struct pci_dev *pdev) |
243 | { | 243 | { |
244 | struct ata_host *host = dev_get_drvdata(&pdev->dev); | 244 | struct ata_host *host = pci_get_drvdata(pdev); |
245 | u8 pcicfg; | 245 | u8 pcicfg; |
246 | int rc; | 246 | int rc; |
247 | 247 | ||
@@ -269,7 +269,7 @@ static int cs5520_reinit_one(struct pci_dev *pdev) | |||
269 | 269 | ||
270 | static int cs5520_pci_device_suspend(struct pci_dev *pdev, pm_message_t mesg) | 270 | static int cs5520_pci_device_suspend(struct pci_dev *pdev, pm_message_t mesg) |
271 | { | 271 | { |
272 | struct ata_host *host = dev_get_drvdata(&pdev->dev); | 272 | struct ata_host *host = pci_get_drvdata(pdev); |
273 | int rc = 0; | 273 | int rc = 0; |
274 | 274 | ||
275 | rc = ata_host_suspend(host, mesg); | 275 | rc = ata_host_suspend(host, mesg); |
diff --git a/drivers/ata/pata_cs5530.c b/drivers/ata/pata_cs5530.c index 48389ae0b330..f07f2296acdc 100644 --- a/drivers/ata/pata_cs5530.c +++ b/drivers/ata/pata_cs5530.c | |||
@@ -330,7 +330,7 @@ static int cs5530_init_one(struct pci_dev *pdev, const struct pci_device_id *id) | |||
330 | #ifdef CONFIG_PM | 330 | #ifdef CONFIG_PM |
331 | static int cs5530_reinit_one(struct pci_dev *pdev) | 331 | static int cs5530_reinit_one(struct pci_dev *pdev) |
332 | { | 332 | { |
333 | struct ata_host *host = dev_get_drvdata(&pdev->dev); | 333 | struct ata_host *host = pci_get_drvdata(pdev); |
334 | int rc; | 334 | int rc; |
335 | 335 | ||
336 | rc = ata_pci_device_do_resume(pdev); | 336 | rc = ata_pci_device_do_resume(pdev); |
diff --git a/drivers/ata/pata_hpt366.c b/drivers/ata/pata_hpt366.c index 4be884a9f5ed..35b521348d31 100644 --- a/drivers/ata/pata_hpt366.c +++ b/drivers/ata/pata_hpt366.c | |||
@@ -390,7 +390,7 @@ static int hpt36x_init_one(struct pci_dev *dev, const struct pci_device_id *id) | |||
390 | #ifdef CONFIG_PM | 390 | #ifdef CONFIG_PM |
391 | static int hpt36x_reinit_one(struct pci_dev *dev) | 391 | static int hpt36x_reinit_one(struct pci_dev *dev) |
392 | { | 392 | { |
393 | struct ata_host *host = dev_get_drvdata(&dev->dev); | 393 | struct ata_host *host = pci_get_drvdata(dev); |
394 | int rc; | 394 | int rc; |
395 | 395 | ||
396 | rc = ata_pci_device_do_resume(dev); | 396 | rc = ata_pci_device_do_resume(dev); |
diff --git a/drivers/ata/pata_hpt3x3.c b/drivers/ata/pata_hpt3x3.c index 76c9314bb824..85cf2861e0b7 100644 --- a/drivers/ata/pata_hpt3x3.c +++ b/drivers/ata/pata_hpt3x3.c | |||
@@ -253,7 +253,7 @@ static int hpt3x3_init_one(struct pci_dev *pdev, const struct pci_device_id *id) | |||
253 | #ifdef CONFIG_PM | 253 | #ifdef CONFIG_PM |
254 | static int hpt3x3_reinit_one(struct pci_dev *dev) | 254 | static int hpt3x3_reinit_one(struct pci_dev *dev) |
255 | { | 255 | { |
256 | struct ata_host *host = dev_get_drvdata(&dev->dev); | 256 | struct ata_host *host = pci_get_drvdata(dev); |
257 | int rc; | 257 | int rc; |
258 | 258 | ||
259 | rc = ata_pci_device_do_resume(dev); | 259 | rc = ata_pci_device_do_resume(dev); |
diff --git a/drivers/ata/pata_it821x.c b/drivers/ata/pata_it821x.c index 9cc05d808ad5..581e04d80367 100644 --- a/drivers/ata/pata_it821x.c +++ b/drivers/ata/pata_it821x.c | |||
@@ -939,7 +939,7 @@ static int it821x_init_one(struct pci_dev *pdev, const struct pci_device_id *id) | |||
939 | #ifdef CONFIG_PM | 939 | #ifdef CONFIG_PM |
940 | static int it821x_reinit_one(struct pci_dev *pdev) | 940 | static int it821x_reinit_one(struct pci_dev *pdev) |
941 | { | 941 | { |
942 | struct ata_host *host = dev_get_drvdata(&pdev->dev); | 942 | struct ata_host *host = pci_get_drvdata(pdev); |
943 | int rc; | 943 | int rc; |
944 | 944 | ||
945 | rc = ata_pci_device_do_resume(pdev); | 945 | rc = ata_pci_device_do_resume(pdev); |
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 | } |
diff --git a/drivers/ata/pata_ninja32.c b/drivers/ata/pata_ninja32.c index 12010ed596c4..9513e071040d 100644 --- a/drivers/ata/pata_ninja32.c +++ b/drivers/ata/pata_ninja32.c | |||
@@ -157,7 +157,7 @@ static int ninja32_init_one(struct pci_dev *dev, const struct pci_device_id *id) | |||
157 | 157 | ||
158 | static int ninja32_reinit_one(struct pci_dev *pdev) | 158 | static int ninja32_reinit_one(struct pci_dev *pdev) |
159 | { | 159 | { |
160 | struct ata_host *host = dev_get_drvdata(&pdev->dev); | 160 | struct ata_host *host = pci_get_drvdata(pdev); |
161 | int rc; | 161 | int rc; |
162 | 162 | ||
163 | rc = ata_pci_device_do_resume(pdev); | 163 | rc = ata_pci_device_do_resume(pdev); |
diff --git a/drivers/ata/pata_ns87415.c b/drivers/ata/pata_ns87415.c index 6f6fa1060505..16dc3a63a23d 100644 --- a/drivers/ata/pata_ns87415.c +++ b/drivers/ata/pata_ns87415.c | |||
@@ -389,7 +389,7 @@ static const struct pci_device_id ns87415_pci_tbl[] = { | |||
389 | #ifdef CONFIG_PM | 389 | #ifdef CONFIG_PM |
390 | static int ns87415_reinit_one(struct pci_dev *pdev) | 390 | static int ns87415_reinit_one(struct pci_dev *pdev) |
391 | { | 391 | { |
392 | struct ata_host *host = dev_get_drvdata(&pdev->dev); | 392 | struct ata_host *host = pci_get_drvdata(pdev); |
393 | int rc; | 393 | int rc; |
394 | 394 | ||
395 | rc = ata_pci_device_do_resume(pdev); | 395 | rc = ata_pci_device_do_resume(pdev); |
diff --git a/drivers/ata/pata_pdc2027x.c b/drivers/ata/pata_pdc2027x.c index c76e65927b0e..9d874c85d64d 100644 --- a/drivers/ata/pata_pdc2027x.c +++ b/drivers/ata/pata_pdc2027x.c | |||
@@ -765,7 +765,7 @@ static int pdc2027x_init_one(struct pci_dev *pdev, | |||
765 | #ifdef CONFIG_PM | 765 | #ifdef CONFIG_PM |
766 | static int pdc2027x_reinit_one(struct pci_dev *pdev) | 766 | static int pdc2027x_reinit_one(struct pci_dev *pdev) |
767 | { | 767 | { |
768 | struct ata_host *host = dev_get_drvdata(&pdev->dev); | 768 | struct ata_host *host = pci_get_drvdata(pdev); |
769 | unsigned int board_idx; | 769 | unsigned int board_idx; |
770 | int rc; | 770 | int rc; |
771 | 771 | ||
diff --git a/drivers/ata/pata_rdc.c b/drivers/ata/pata_rdc.c index 6a8665574fee..79a970f05a2e 100644 --- a/drivers/ata/pata_rdc.c +++ b/drivers/ata/pata_rdc.c | |||
@@ -364,7 +364,7 @@ static int rdc_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
364 | 364 | ||
365 | static void rdc_remove_one(struct pci_dev *pdev) | 365 | static void rdc_remove_one(struct pci_dev *pdev) |
366 | { | 366 | { |
367 | struct ata_host *host = dev_get_drvdata(&pdev->dev); | 367 | struct ata_host *host = pci_get_drvdata(pdev); |
368 | struct rdc_host_priv *hpriv = host->private_data; | 368 | struct rdc_host_priv *hpriv = host->private_data; |
369 | 369 | ||
370 | pci_write_config_dword(pdev, 0x54, hpriv->saved_iocfg); | 370 | pci_write_config_dword(pdev, 0x54, hpriv->saved_iocfg); |
diff --git a/drivers/ata/pata_rz1000.c b/drivers/ata/pata_rz1000.c index 60f4de2dd47d..040b093617a4 100644 --- a/drivers/ata/pata_rz1000.c +++ b/drivers/ata/pata_rz1000.c | |||
@@ -105,7 +105,7 @@ 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); | 108 | struct ata_host *host = pci_get_drvdata(pdev); |
109 | int rc; | 109 | int rc; |
110 | 110 | ||
111 | rc = ata_pci_device_do_resume(pdev); | 111 | rc = ata_pci_device_do_resume(pdev); |
diff --git a/drivers/ata/pata_serverworks.c b/drivers/ata/pata_serverworks.c index f3febbce6c46..96c6a79ef606 100644 --- a/drivers/ata/pata_serverworks.c +++ b/drivers/ata/pata_serverworks.c | |||
@@ -440,7 +440,7 @@ static int serverworks_init_one(struct pci_dev *pdev, const struct pci_device_id | |||
440 | #ifdef CONFIG_PM | 440 | #ifdef CONFIG_PM |
441 | static int serverworks_reinit_one(struct pci_dev *pdev) | 441 | static int serverworks_reinit_one(struct pci_dev *pdev) |
442 | { | 442 | { |
443 | struct ata_host *host = dev_get_drvdata(&pdev->dev); | 443 | struct ata_host *host = pci_get_drvdata(pdev); |
444 | int rc; | 444 | int rc; |
445 | 445 | ||
446 | rc = ata_pci_device_do_resume(pdev); | 446 | rc = ata_pci_device_do_resume(pdev); |
diff --git a/drivers/ata/pata_sil680.c b/drivers/ata/pata_sil680.c index 64c5f0d0f812..c4b0b073ba8e 100644 --- a/drivers/ata/pata_sil680.c +++ b/drivers/ata/pata_sil680.c | |||
@@ -407,7 +407,7 @@ use_ioports: | |||
407 | #ifdef CONFIG_PM | 407 | #ifdef CONFIG_PM |
408 | static int sil680_reinit_one(struct pci_dev *pdev) | 408 | static int sil680_reinit_one(struct pci_dev *pdev) |
409 | { | 409 | { |
410 | struct ata_host *host = dev_get_drvdata(&pdev->dev); | 410 | struct ata_host *host = pci_get_drvdata(pdev); |
411 | int try_mmio, rc; | 411 | int try_mmio, rc; |
412 | 412 | ||
413 | rc = ata_pci_device_do_resume(pdev); | 413 | rc = ata_pci_device_do_resume(pdev); |
diff --git a/drivers/ata/pata_sis.c b/drivers/ata/pata_sis.c index 2d5ac1361262..1e8363640bf5 100644 --- a/drivers/ata/pata_sis.c +++ b/drivers/ata/pata_sis.c | |||
@@ -873,7 +873,7 @@ static int sis_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) | |||
873 | #ifdef CONFIG_PM | 873 | #ifdef CONFIG_PM |
874 | static int sis_reinit_one(struct pci_dev *pdev) | 874 | static int sis_reinit_one(struct pci_dev *pdev) |
875 | { | 875 | { |
876 | struct ata_host *host = dev_get_drvdata(&pdev->dev); | 876 | struct ata_host *host = pci_get_drvdata(pdev); |
877 | int rc; | 877 | int rc; |
878 | 878 | ||
879 | rc = ata_pci_device_do_resume(pdev); | 879 | rc = ata_pci_device_do_resume(pdev); |
diff --git a/drivers/ata/pata_sl82c105.c b/drivers/ata/pata_sl82c105.c index 738e000107d6..6816911ac422 100644 --- a/drivers/ata/pata_sl82c105.c +++ b/drivers/ata/pata_sl82c105.c | |||
@@ -341,7 +341,7 @@ static int sl82c105_init_one(struct pci_dev *dev, const struct pci_device_id *id | |||
341 | #ifdef CONFIG_PM | 341 | #ifdef CONFIG_PM |
342 | static int sl82c105_reinit_one(struct pci_dev *pdev) | 342 | static int sl82c105_reinit_one(struct pci_dev *pdev) |
343 | { | 343 | { |
344 | struct ata_host *host = dev_get_drvdata(&pdev->dev); | 344 | struct ata_host *host = pci_get_drvdata(pdev); |
345 | int rc; | 345 | int rc; |
346 | 346 | ||
347 | rc = ata_pci_device_do_resume(pdev); | 347 | rc = ata_pci_device_do_resume(pdev); |
diff --git a/drivers/ata/pata_triflex.c b/drivers/ata/pata_triflex.c index c8e589d91231..94473da68c02 100644 --- a/drivers/ata/pata_triflex.c +++ b/drivers/ata/pata_triflex.c | |||
@@ -211,7 +211,7 @@ static const struct pci_device_id triflex[] = { | |||
211 | #ifdef CONFIG_PM | 211 | #ifdef CONFIG_PM |
212 | static int triflex_ata_pci_device_suspend(struct pci_dev *pdev, pm_message_t mesg) | 212 | static int triflex_ata_pci_device_suspend(struct pci_dev *pdev, pm_message_t mesg) |
213 | { | 213 | { |
214 | struct ata_host *host = dev_get_drvdata(&pdev->dev); | 214 | struct ata_host *host = pci_get_drvdata(pdev); |
215 | int rc = 0; | 215 | int rc = 0; |
216 | 216 | ||
217 | rc = ata_host_suspend(host, mesg); | 217 | rc = ata_host_suspend(host, mesg); |
diff --git a/drivers/ata/pata_via.c b/drivers/ata/pata_via.c index 8d2a9fdf6b8d..c3ab9a6c3965 100644 --- a/drivers/ata/pata_via.c +++ b/drivers/ata/pata_via.c | |||
@@ -673,7 +673,7 @@ static int via_init_one(struct pci_dev *pdev, const struct pci_device_id *id) | |||
673 | 673 | ||
674 | static int via_reinit_one(struct pci_dev *pdev) | 674 | static int via_reinit_one(struct pci_dev *pdev) |
675 | { | 675 | { |
676 | struct ata_host *host = dev_get_drvdata(&pdev->dev); | 676 | struct ata_host *host = pci_get_drvdata(pdev); |
677 | int rc; | 677 | int rc; |
678 | 678 | ||
679 | rc = ata_pci_device_do_resume(pdev); | 679 | rc = ata_pci_device_do_resume(pdev); |
diff --git a/drivers/ata/sata_inic162x.c b/drivers/ata/sata_inic162x.c index 1e6827c89429..e45131748248 100644 --- a/drivers/ata/sata_inic162x.c +++ b/drivers/ata/sata_inic162x.c | |||
@@ -776,7 +776,7 @@ static int init_controller(void __iomem *mmio_base, u16 hctl) | |||
776 | #ifdef CONFIG_PM | 776 | #ifdef CONFIG_PM |
777 | static int inic_pci_device_resume(struct pci_dev *pdev) | 777 | static int inic_pci_device_resume(struct pci_dev *pdev) |
778 | { | 778 | { |
779 | struct ata_host *host = dev_get_drvdata(&pdev->dev); | 779 | struct ata_host *host = pci_get_drvdata(pdev); |
780 | struct inic_host_priv *hpriv = host->private_data; | 780 | struct inic_host_priv *hpriv = host->private_data; |
781 | int rc; | 781 | int rc; |
782 | 782 | ||
diff --git a/drivers/ata/sata_nv.c b/drivers/ata/sata_nv.c index 85ee4993ca74..d74def823d3e 100644 --- a/drivers/ata/sata_nv.c +++ b/drivers/ata/sata_nv.c | |||
@@ -2435,7 +2435,7 @@ static int nv_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
2435 | #ifdef CONFIG_PM | 2435 | #ifdef CONFIG_PM |
2436 | static int nv_pci_device_resume(struct pci_dev *pdev) | 2436 | static int nv_pci_device_resume(struct pci_dev *pdev) |
2437 | { | 2437 | { |
2438 | struct ata_host *host = dev_get_drvdata(&pdev->dev); | 2438 | struct ata_host *host = pci_get_drvdata(pdev); |
2439 | struct nv_host_priv *hpriv = host->private_data; | 2439 | struct nv_host_priv *hpriv = host->private_data; |
2440 | int rc; | 2440 | int rc; |
2441 | 2441 | ||
diff --git a/drivers/ata/sata_sil.c b/drivers/ata/sata_sil.c index a7b31672c4b7..a6da219357eb 100644 --- a/drivers/ata/sata_sil.c +++ b/drivers/ata/sata_sil.c | |||
@@ -805,7 +805,7 @@ static int sil_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
805 | #ifdef CONFIG_PM | 805 | #ifdef CONFIG_PM |
806 | static int sil_pci_device_resume(struct pci_dev *pdev) | 806 | static int sil_pci_device_resume(struct pci_dev *pdev) |
807 | { | 807 | { |
808 | struct ata_host *host = dev_get_drvdata(&pdev->dev); | 808 | struct ata_host *host = pci_get_drvdata(pdev); |
809 | int rc; | 809 | int rc; |
810 | 810 | ||
811 | rc = ata_pci_device_do_resume(pdev); | 811 | rc = ata_pci_device_do_resume(pdev); |
diff --git a/drivers/ata/sata_sil24.c b/drivers/ata/sata_sil24.c index 59f0d630d634..aa1051ba6d13 100644 --- a/drivers/ata/sata_sil24.c +++ b/drivers/ata/sata_sil24.c | |||
@@ -1353,7 +1353,7 @@ static int sil24_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
1353 | #ifdef CONFIG_PM | 1353 | #ifdef CONFIG_PM |
1354 | static int sil24_pci_device_resume(struct pci_dev *pdev) | 1354 | static int sil24_pci_device_resume(struct pci_dev *pdev) |
1355 | { | 1355 | { |
1356 | struct ata_host *host = dev_get_drvdata(&pdev->dev); | 1356 | struct ata_host *host = pci_get_drvdata(pdev); |
1357 | void __iomem *host_base = host->iomap[SIL24_HOST_BAR]; | 1357 | void __iomem *host_base = host->iomap[SIL24_HOST_BAR]; |
1358 | int rc; | 1358 | int rc; |
1359 | 1359 | ||