S3C24XX: ensure we only configure valid GPIOs
commit438ae1ae7bef17026127b66b1ee16efde93bbcb0
authorBen Dooks <ben-linux@fluff.org>
Thu, 29 Nov 2007 00:21:29 +0000 (28 16:21 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 29 Nov 2007 17:24:52 +0000 (29 09:24 -0800)
treedd310b28edb8715473a3086c642f674e39f2a2b6
parent3ac40b9b5e62528d407e0e780b65c21c0247bc7c
S3C24XX: ensure we only configure valid GPIOs

If we specify an GPIO which cannot be used for the purpose, then assume
that the GPIO is not to be used and do not try and configure it.  This can
be the case where the SPI bus is TX only.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/spi/spi_s3c24xx_gpio.c