arm/imx/iomux-v1: check for invalid modes in mxc_gpio_mode
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 15 Feb 2010 08:47:55 +0000 (09:47 +0100)
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 24 Feb 2010 09:07:16 +0000 (10:07 +0100)
commitbac3fcfad565c9bbceeed8b607f140c29df97355
tree63e89451b3c411416de61f5ed557cf50236ec616
parente835d88e71f54c048a8cc907cc34084f1dd5846b
arm/imx/iomux-v1: check for invalid modes in mxc_gpio_mode

mxc_gpio_mode checks for invalid pins and so it returns zero for
success, -EINVAL for invalid pins.

While at it, remove definitions of GPIO_PORT_MAX removed as they are
unused now.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
arch/arm/plat-mxc/Makefile
arch/arm/plat-mxc/include/mach/iomux-mx3.h
arch/arm/plat-mxc/include/mach/iomux-v1.h
arch/arm/plat-mxc/iomux-v1.c