projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ata: use pci_get_drvdata()
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
ata
/
pata_amd.c
diff --git
a/drivers/ata/pata_amd.c
b/drivers/ata/pata_amd.c
index 82a08922afcd1d30a55dec64ed17bd6d8c414b13..d23e2b3ca0b68a6c7109eef8e53b2e3e68048281 100644
(file)
--- 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)
#ifdef CONFIG_PM
static int amd_reinit_one(struct pci_dev *pdev)
{
- struct ata_host *host =
dev_get_drvdata(&pdev->
dev);
+ struct ata_host *host =
pci_get_drvdata(p
dev);
int rc;
rc = ata_pci_device_do_resume(pdev);