summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap1/gpio16xx.c
diff options
context:
space:
mode:
authorCharulatha V2011-05-05 16:28:01 +0200
committerTarun Kanti DebBarma2012-02-06 09:43:40 +0100
commit03e128ca35e5da22e9e65ec8ab158ec0e905fdea (patch)
tree2c1a95e5a8dd50429291f27a537e6b8cfadf22e5 /arch/arm/mach-omap1/gpio16xx.c
parentLinux 3.3-rc2 (diff)
downloadkernel-qcow2-linux-03e128ca35e5da22e9e65ec8ab158ec0e905fdea.tar.gz
kernel-qcow2-linux-03e128ca35e5da22e9e65ec8ab158ec0e905fdea.tar.xz
kernel-qcow2-linux-03e128ca35e5da22e9e65ec8ab158ec0e905fdea.zip
gpio/omap: remove dependency on gpio_bank_count
The gpio_bank_count is the count of number of GPIO devices in a SoC. Remove this dependency from the driver by using list. Also remove the dependency on array of pointers to gpio_bank struct of all GPIO devices. Signed-off-by: Charulatha V <charu@ti.com> Reviewed-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Acked-by: Tony Lindgren <tony@atomide.com> Reviewed-by: Kevin Hilman <khilman@ti.com> Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/mach-omap1/gpio16xx.c')
-rw-r--r--arch/arm/mach-omap1/gpio16xx.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/arm/mach-omap1/gpio16xx.c b/arch/arm/mach-omap1/gpio16xx.c
index 0f399bd0e70e..df4bb445d829 100644
--- a/arch/arm/mach-omap1/gpio16xx.c
+++ b/arch/arm/mach-omap1/gpio16xx.c
@@ -221,8 +221,6 @@ static int __init omap16xx_gpio_init(void)
for (i = 0; i < ARRAY_SIZE(omap16xx_gpio_dev); i++)
platform_device_register(omap16xx_gpio_dev[i]);
- gpio_bank_count = ARRAY_SIZE(omap16xx_gpio_dev);
-
return 0;
}
postcore_initcall(omap16xx_gpio_init);