Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219559
b: refs/heads/master
c: 1ca98fa
h: refs/heads/master
i:
  219557: d5ed88f
  219555: a570717
  219551: 47784a0
v: v3
  • Loading branch information
Bjorn Helgaas authored and Jesse Barnes committed Oct 18, 2010
1 parent cc193a8 commit c95e37b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 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: df17e62e5bff60aeefd0e81165c62f9e46f33217
refs/heads/master: 1ca98fa652bb5dc3c8793335db9ccc5d0f2e1f65
4 changes: 1 addition & 3 deletions trunk/arch/x86/pci/mmconfig-shared.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ static __init struct pci_mmcfg_region *pci_mmconfig_add(int segment, int start,
int end, u64 addr)
{
struct pci_mmcfg_region *new;
int num_buses;
struct resource *res;

if (addr == 0)
Expand All @@ -82,10 +81,9 @@ static __init struct pci_mmcfg_region *pci_mmconfig_add(int segment, int start,

list_add_sorted(new);

num_buses = end - start + 1;
res = &new->res;
res->start = addr + PCI_MMCFG_BUS_OFFSET(start);
res->end = addr + PCI_MMCFG_BUS_OFFSET(num_buses) - 1;
res->end = addr + PCI_MMCFG_BUS_OFFSET(end + 1) - 1;
res->flags = IORESOURCE_MEM | IORESOURCE_BUSY;
snprintf(new->name, PCI_MMCFG_RESOURCE_NAME_LEN,
"PCI MMCONFIG %04x [bus %02x-%02x]", segment, start, end);
Expand Down

0 comments on commit c95e37b

Please sign in to comment.