MIPS: ath79: use a helper function for USB resource initialization
authorGabor Juhos <juhosg@openwrt.org>
Sat, 4 Aug 2012 15:03:55 +0000 (15:03 +0000)
committerJohn Crispin <blogic@openwrt.org>
Tue, 28 Aug 2012 10:29:57 +0000 (12:29 +0200)
commit8d3e03e186cb94a333d0176fe8b22a6df200fcc7
tree3ac3438fc2fcc43f4e93cfb180a0d29cd50b91d2
parentc182ae42cc3611f7b3fa803c0bcab6e5d29bea63
MIPS: ath79: use a helper function for USB resource initialization

This improves code readability, and ensures that
all resource fields will be initialized correctly.
Additionally, it helps to reduce the size of the
kernel image by using uninitialized resource
variables.

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