Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116719
b: refs/heads/master
c: 022edd8
h: refs/heads/master
i:
  116717: ab8bf10
  116715: 76c9a3b
  116711: d5edf16
  116703: 508dd21
v: v3
  • Loading branch information
Zhao, Yu authored and Jesse Barnes committed Oct 20, 2008
1 parent c615249 commit bfc0387
Show file tree
Hide file tree
Showing 3 changed files with 4 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: c322b28a04c084a467a862766f74c40c917a721c
refs/heads/master: 022edd86d7c864bc8fadc3c8ac4e6a464472ab05
4 changes: 2 additions & 2 deletions trunk/drivers/pci/setup-bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ static void pbus_size_io(struct pci_bus *bus)

if (r->parent || !(r->flags & IORESOURCE_IO))
continue;
r_size = r->end - r->start + 1;
r_size = resource_size(r);

if (r_size < 0x400)
/* Might be re-aligned for ISA */
Expand Down Expand Up @@ -350,7 +350,7 @@ static int pbus_size_mem(struct pci_bus *bus, unsigned long mask, unsigned long

if (r->parent || (r->flags & mask) != type)
continue;
r_size = r->end - r->start + 1;
r_size = resource_size(r);
/* For bridges size != alignment */
align = resource_alignment(r);
order = __ffs(align) - 20;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/pci/setup-res.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ int pci_assign_resource(struct pci_dev *dev, int resno)
resource_size_t size, min, align;
int ret;

size = res->end - res->start + 1;
size = resource_size(res);
min = (res->flags & IORESOURCE_IO) ? PCIBIOS_MIN_IO : PCIBIOS_MIN_MEM;

align = resource_alignment(res);
Expand Down

0 comments on commit bfc0387

Please sign in to comment.