spi/imx: use gpio_is_valid to determine if a gpio is valid
authorHui Wang <jason77.wang@gmail.com>
Fri, 13 Jul 2012 02:51:29 +0000 (10:51 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 13 Jul 2012 10:01:46 +0000 (11:01 +0100)
commit8b17e0559fe728b89b45f4d88b4b30b498862709
tree10ace386f284572c8df17d5d6ea109e717e7a0a4
parent872675df2795389fd47b7a0ad084ba1e91665c87
spi/imx: use gpio_is_valid to determine if a gpio is valid

Use gpio_is_valid() to replace "gpio >= 0" or "gpio < 0".

Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Hui Wang <jason77.wang@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/spi/spi-imx.c