Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 81218
b: refs/heads/master
c: 533b192
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mackerras committed Dec 30, 2007
1 parent 0eb8b40 commit 2fa2808
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 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: d2d8cfc657e2fc766cd2c0487397109240cb0427
refs/heads/master: 533b1928b5c37dbdaabec3e7ff073aee8d7af3eb
13 changes: 3 additions & 10 deletions trunk/arch/powerpc/kernel/pci-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@ static void __init pcibios_allocate_bus_resources(struct list_head *bus_list)
}
}

static inline int __devinit alloc_resource(struct pci_dev *dev, int idx)
static inline void __devinit alloc_resource(struct pci_dev *dev, int idx)
{
struct resource *pr, *r = &dev->resource[idx];

Expand All @@ -1059,10 +1059,7 @@ static inline int __devinit alloc_resource(struct pci_dev *dev, int idx)
r->flags |= IORESOURCE_UNSET;
r->end -= r->start;
r->start = 0;

return -EBUSY;
}
return 0;
}

static void __init pcibios_allocate_resources(int pass)
Expand All @@ -1084,12 +1081,8 @@ static void __init pcibios_allocate_resources(int pass)
disabled = !(command & PCI_COMMAND_IO);
else
disabled = !(command & PCI_COMMAND_MEMORY);
if (pass == disabled && alloc_resource(dev, idx)) {
command &= ~(r->flags & (IORESOURCE_IO |
IORESOURCE_MEM));
pci_write_config_word(dev,
PCI_COMMAND, command);
}
if (pass == disabled)
alloc_resource(dev, idx);
}
if (pass)
continue;
Expand Down

0 comments on commit 2fa2808

Please sign in to comment.