aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/setup-pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/setup-pci.c')
-rw-r--r--drivers/ide/setup-pci.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/ide/setup-pci.c b/drivers/ide/setup-pci.c
index 676c66e72881..cf79470a932d 100644
--- a/drivers/ide/setup-pci.c
+++ b/drivers/ide/setup-pci.c
@@ -240,7 +240,9 @@ EXPORT_SYMBOL_GPL(ide_setup_pci_noise);
240 * @d: IDE port info 240 * @d: IDE port info
241 * 241 *
242 * Enable the IDE PCI device. We attempt to enable the device in full 242 * Enable the IDE PCI device. We attempt to enable the device in full
243 * but if that fails then we only need BAR4 so we will enable that. 243 * but if that fails then we only need IO space. The PCI code should
244 * have setup the proper resources for us already for controllers in
245 * legacy mode.
244 * 246 *
245 * Returns zero on success or an error code 247 * Returns zero on success or an error code
246 */ 248 */
@@ -250,7 +252,7 @@ static int ide_pci_enable(struct pci_dev *dev, const struct ide_port_info *d)
250 int ret; 252 int ret;
251 253
252 if (pci_enable_device(dev)) { 254 if (pci_enable_device(dev)) {
253 ret = pci_enable_device_bars(dev, 1 << 4); 255 ret = pci_enable_device_io(dev);
254 if (ret < 0) { 256 if (ret < 0) {
255 printk(KERN_WARNING "%s: (ide_setup_pci_device:) " 257 printk(KERN_WARNING "%s: (ide_setup_pci_device:) "
256 "Could not enable device.\n", d->name); 258 "Could not enable device.\n", d->name);