gpio: Fix stmpe error path
authorVasiliy Kulikov <segooon@gmail.com>
Sun, 12 Sep 2010 18:57:19 +0000 (22:57 +0400)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 28 Oct 2010 22:29:32 +0000 (00:29 +0200)
commit02bf07492341d94e29890082201dd69dbf406570
treef7430d2986cba406c62da5b009c03c99ca942d7f
parent1819ebcf1dc5ba9a19dab1f51a21af6274bbd829
gpio: Fix stmpe error path

Free allocated memory.  Call stmpe_disable() if it was enabled.

Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Rabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/gpio/stmpe-gpio.c