]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
PCI: Fix bus resource assignment on 32 bits with 64b resources
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 10 Dec 2007 06:32:15 +0000 (17:32 +1100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Feb 2008 23:04:25 +0000 (15:04 -0800)
commitc40a22e0ce5eb400f27449e59e43d021bee58b8d
tree9335519358ff657a6a80baefd759337e324dc26d
parentf07234b66af1d1a204b9ddabdbdb312e8f1fb35e
PCI: Fix bus resource assignment on 32 bits with 64b resources

The current pci_assign_unassigned_resources() code doesn't work properly
on 32 bits platforms with 64 bits resources. The main reason is the use
of unsigned long in various places instead of resource_size_t.

This is a pre-requisite for making powerpc use the generic code instead of
its own half-useful implementation.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/setup-bus.c
include/linux/pci.h