MIPS: pci-ar724x: use dynamically allocated PCI controller structure
authorGabor Juhos <juhosg@openwrt.org>
Sun, 3 Feb 2013 09:58:38 +0000 (09:58 +0000)
committerJohn Crispin <blogic@openwrt.org>
Sun, 17 Feb 2013 00:25:38 +0000 (01:25 +0100)
The current code uses static variables to store the
PCI controller specific data. This works if the system
contains one PCI controller only, however it becomes
impractical when multiple PCI controllers are present.

Move the variables into a dynamically allocated controller
specific structure, and use that instead of the static
variables.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/4912/
Signed-off-by: John Crispin <blogic@openwrt.org>

No differences found