]> rtime.felk.cvut.cz Git - linux-imx.git/commit
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)
commit908339ef25b1d5e80f1c6fab22b9958174708b4a
tree6dceee739cc3dfa1cd956916c417b26a2e64b745
parent617fed41e98417f3ea3e9974be251e125c8796f2
MIPS: pci-ar724x: use dynamically allocated PCI controller structure

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>
arch/mips/pci/pci-ar724x.c