diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-02-01 22:29:33 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-02-01 22:29:33 -0500 |
commit | 215e871aaa3d94540121a3809d80d0c5e5686e4f (patch) | |
tree | 0ed6469c5ad04db8cfa0edb58c676d5155df20cd /drivers/ide/setup-pci.c | |
parent | b6cf160c4b788a31f6a4017a469b956ca77febf4 (diff) | |
parent | fd7d1ced29e5beb88c9068801da7a362606d8273 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/pci-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/pci-2.6: (64 commits)
PCI: make pci_bus a struct device
PCI: fix codingstyle issues in include/linux/pci.h
PCI: fix codingstyle issues in drivers/pci/pci.h
PCI: PCIE ASPM support
PCI: Fix fakephp deadlock
PCI: modify SB700 SATA MSI quirk
PCI: Run ACPI _OSC method on root bridges only
PCI ACPI: AER driver should only register PCIe devices with _OSC
PCI ACPI: Added a function to register _OSC with only PCIe devices.
PCI: constify function pointer tables
PCI: Convert drivers/pci/proc.c to use unlocked_ioctl
pciehp: block new requests from the device before power off
pciehp: workaround against Bad DLLP during power off
pciehp: wait for 1000ms before LED operation after power off
PCI: Remove pci_enable_device_bars() from documentation
PCI: Remove pci_enable_device_bars()
PCI: Remove users of pci_enable_device_bars()
PCI: Add pci_enable_device_{io,mem} intefaces
PCI: avoid save the same type of cap multiple times
PCI: correctly initialize a structure for pcie_save_pcix_state()
...
Diffstat (limited to 'drivers/ide/setup-pci.c')
-rw-r--r-- | drivers/ide/setup-pci.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/ide/setup-pci.c b/drivers/ide/setup-pci.c index 8ff5a0ef10ad..05db429a7da8 100644 --- a/drivers/ide/setup-pci.c +++ b/drivers/ide/setup-pci.c | |||
@@ -228,7 +228,9 @@ EXPORT_SYMBOL_GPL(ide_setup_pci_noise); | |||
228 | * @d: IDE port info | 228 | * @d: IDE port info |
229 | * | 229 | * |
230 | * Enable the IDE PCI device. We attempt to enable the device in full | 230 | * Enable the IDE PCI device. We attempt to enable the device in full |
231 | * but if that fails then we only need BAR4 so we will enable that. | 231 | * but if that fails then we only need IO space. The PCI code should |
232 | * have setup the proper resources for us already for controllers in | ||
233 | * legacy mode. | ||
232 | * | 234 | * |
233 | * Returns zero on success or an error code | 235 | * Returns zero on success or an error code |
234 | */ | 236 | */ |
@@ -238,7 +240,7 @@ static int ide_pci_enable(struct pci_dev *dev, const struct ide_port_info *d) | |||
238 | int ret; | 240 | int ret; |
239 | 241 | ||
240 | if (pci_enable_device(dev)) { | 242 | if (pci_enable_device(dev)) { |
241 | ret = pci_enable_device_bars(dev, 1 << 4); | 243 | ret = pci_enable_device_io(dev); |
242 | if (ret < 0) { | 244 | if (ret < 0) { |
243 | printk(KERN_WARNING "%s: (ide_setup_pci_device:) " | 245 | printk(KERN_WARNING "%s: (ide_setup_pci_device:) " |
244 | "Could not enable device.\n", d->name); | 246 | "Could not enable device.\n", d->name); |