From bac3fcfad565c9bbceeed8b607f140c29df97355 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Mon, 15 Feb 2010 09:47:55 +0100 Subject: arm/imx/iomux-v1: check for invalid modes in mxc_gpio_mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- arch/arm/plat-mxc/include/mach/iomux-mx3.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'arch/arm/plat-mxc/include/mach/iomux-mx3.h') diff --git a/arch/arm/plat-mxc/include/mach/iomux-mx3.h b/arch/arm/plat-mxc/include/mach/iomux-mx3.h index e5e5861cbbe1..e51465d7b224 100644 --- a/arch/arm/plat-mxc/include/mach/iomux-mx3.h +++ b/arch/arm/plat-mxc/include/mach/iomux-mx3.h @@ -164,11 +164,6 @@ int mxc_iomux_mode(unsigned int pin_mode); (((iomux_pin & IOMUX_GPIONUM_MASK) >> IOMUX_GPIONUM_SHIFT) + \ MXC_GPIO_IRQ_START) -/* - * The number of gpio devices among the pads - */ -#define GPIO_PORT_MAX 3 - /* * This enumeration is constructed based on the Section * "sw_pad_ctl & sw_mux_ctl details" of the MX31 IC Spec. Each enumerated -- cgit v1.2.2