diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/alpha/kernel/pci.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/arch/alpha/kernel/pci.c b/arch/alpha/kernel/pci.c index 9dc1cee43265..c107cc08daf4 100644 --- a/arch/alpha/kernel/pci.c +++ b/arch/alpha/kernel/pci.c | |||
@@ -372,28 +372,7 @@ EXPORT_SYMBOL(pcibios_bus_to_resource); | |||
372 | int | 372 | int |
373 | pcibios_enable_device(struct pci_dev *dev, int mask) | 373 | pcibios_enable_device(struct pci_dev *dev, int mask) |
374 | { | 374 | { |
375 | u16 cmd, oldcmd; | 375 | return pci_enable_resources(dev, mask); |
376 | int i; | ||
377 | |||
378 | pci_read_config_word(dev, PCI_COMMAND, &cmd); | ||
379 | oldcmd = cmd; | ||
380 | |||
381 | for (i = 0; i < PCI_NUM_RESOURCES; i++) { | ||
382 | struct resource *res = &dev->resource[i]; | ||
383 | |||
384 | if (res->flags & IORESOURCE_IO) | ||
385 | cmd |= PCI_COMMAND_IO; | ||
386 | else if (res->flags & IORESOURCE_MEM) | ||
387 | cmd |= PCI_COMMAND_MEMORY; | ||
388 | } | ||
389 | |||
390 | if (cmd != oldcmd) { | ||
391 | printk(KERN_DEBUG "PCI: Enabling device: (%s), cmd %x\n", | ||
392 | pci_name(dev), cmd); | ||
393 | /* Enable the appropriate bits in the PCI command register. */ | ||
394 | pci_write_config_word(dev, PCI_COMMAND, cmd); | ||
395 | } | ||
396 | return 0; | ||
397 | } | 376 | } |
398 | 377 | ||
399 | /* | 378 | /* |