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 /drivers/ata/ahci.c | |
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>
Diffstat (limited to 'drivers/ata/ahci.c')
-rw-r--r-- | drivers/ata/ahci.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |