ARM: pxa/am200epd: fix leak in am200_init_gpio_regs error path
authorAxel Lin <axel.lin@gmail.com>
Mon, 7 Mar 2011 05:55:15 +0000 (13:55 +0800)
committerEric Miao <eric.y.miao@gmail.com>
Thu, 17 Mar 2011 10:16:12 +0000 (18:16 +0800)
commit8aad172e6c54c74b1effe88ded2f308db3e1b658
tree9cde71aa6b2e6366dbcea19ae1b3bb6930a96e00
parente3b1ceedf7adc4adfc989ee78a30fca7b62480b5
ARM: pxa/am200epd: fix leak in am200_init_gpio_regs error path

If gpio_request fails when i > 0, gpios[0] is not freed in current
implementation.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
arch/arm/mach-pxa/am200epd.c