git.samba.org
/
sfrench
/
cifs-2.6.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()
[sfrench/cifs-2.6.git]
/
drivers
/
ata
/
pata_hpt366.c
diff --git
a/drivers/ata/pata_hpt366.c
b/drivers/ata/pata_hpt366.c
index 4be884a9f5edc6537e1eac71232654315da301ba..35b521348d311fbb7b2921618e348661a57edfb6 100644
(file)
--- 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)
#ifdef CONFIG_PM
static int hpt36x_reinit_one(struct pci_dev *dev)
{
- struct ata_host *host =
dev_get_drvdata(&dev->
dev);
+ struct ata_host *host =
pci_get_drvdata(
dev);
int rc;
rc = ata_pci_device_do_resume(dev);