]> git.hungrycats.org Git - linux/commit
[PCI] pci-15: Fix setup-bus.c resource sizing.
authorRussell King <rmk@flint.arm.linux.org.uk>
Sun, 16 Mar 2003 23:28:51 +0000 (23:28 +0000)
committerRussell King <rmk@flint.arm.linux.org.uk>
Sun, 16 Mar 2003 23:28:51 +0000 (23:28 +0000)
commit18e35894a4d4661a81e47176b296f24c5e722d6f
treee7b4469fa1a6864ad9eceea3bd0c4d8e50755f38
parentfc8b54a1a79a1c9795cbe8a2629b2e67fb7f73e6
[PCI] pci-15: Fix setup-bus.c resource sizing.

Patch from Ivan Kokshaysky

This fixes long standing typo ('size' instead of 'r_size') which causes
overestimate of the bridge memory ranges calculated in pbus_size_mem().
For example, if we have a device with one 1Mb and one 2Mb memory ranges
behind the bridge, calculated size and alignment of the bridge memory
window will be 4Mb and 2Mb respectively, while the correct values are
3Mb and 1Mb.
drivers/pci/setup-bus.c