]> git.karo-electronics.de Git - linux-beck.git/commit
MIPS: ath79: use dynamically allocated USB platform devices
authorGabor Juhos <juhosg@openwrt.org>
Sat, 9 Feb 2013 17:57:52 +0000 (17:57 +0000)
committerJohn Crispin <blogic@openwrt.org>
Sun, 17 Feb 2013 00:25:42 +0000 (01:25 +0100)
commit90a938d1add4859ad3e43c3dd5ee54bd0627e42d
tree9b34a0c5b275bf60093531996ee0a95179650da0
parentfd633cf1cfe978003888dc78ff94f926fbe7dd8a
MIPS: ath79: use dynamically allocated USB platform devices

The current code uses static resources and static platform
device instances for the possible USB controllers in the
system. These static variables contains initial values which
leads to data segment pollution.

Remove the static variables and use dynamically allocated
structures instead.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/4933/
Signed-off-by: John Crispin <blogic@openwrt.org>
arch/mips/ath79/dev-usb.c