projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libata: PCI device should be powered up before being accessed
[linux-2.6-block.git]
/
drivers
/
ata
/
pata_hpt37x.c
diff --git
a/drivers/ata/pata_hpt37x.c
b/drivers/ata/pata_hpt37x.c
index 9a10878b2ad870049cbd0341dee7b30adacbf44c..2ddcd07a75182cc9cae43e247c4cd02c364c2573 100644
(file)
--- a/
drivers/ata/pata_hpt37x.c
+++ b/
drivers/ata/pata_hpt37x.c
@@
-966,6
+966,11
@@
static int hpt37x_init_one(struct pci_dev *dev, const struct pci_device_id *id)
const struct hpt_chip *chip_table;
int clock_slot;
+ int rc;
+
+ rc = pcim_enable_device(dev);
+ if (rc)
+ return rc;
pci_read_config_dword(dev, PCI_CLASS_REVISION, &class_rev);
class_rev &= 0xFF;