spi/imx: simplify error handling to free gpios
authorAxel Lin <axel.lin@gmail.com>
Tue, 10 Jan 2012 07:27:36 +0000 (15:27 +0800)
committerGrant Likely <grant.likely@secretlab.ca>
Fri, 9 Mar 2012 23:26:48 +0000 (16:26 -0700)
Simplify the error handling by moving the code to free gpios in one place.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi-imx.c

Simple merge