Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 28582
b: refs/heads/master
c: a1e022b
h: refs/heads/master
v: v3
  • Loading branch information
Kristen Accardi authored and Greg Kroah-Hartman committed Jun 21, 2006
1 parent e932dd0 commit a55fcc3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9f125d30487cea72542a84b4835c037163c7f3d5
refs/heads/master: a1e022b3aeacf633a6c8e8f0eb04d9c9e44b4fcd
7 changes: 6 additions & 1 deletion trunk/drivers/pci/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,12 @@ pci_enable_device_bars(struct pci_dev *dev, int bars)
int
pci_enable_device(struct pci_dev *dev)
{
int err = pci_enable_device_bars(dev, (1 << PCI_NUM_RESOURCES) - 1);
int err;

if (dev->is_enabled)
return 0;

err = pci_enable_device_bars(dev, (1 << PCI_NUM_RESOURCES) - 1);
if (err)
return err;
pci_fixup_device(pci_fixup_enable, dev);
Expand Down

0 comments on commit a55fcc3

Please sign in to comment.