[ARM] omap: fix gpio.c build error
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Wed, 3 Sep 2008 09:15:26 +0000 (10:15 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 3 Sep 2008 09:15:26 +0000 (10:15 +0100)
arch/arm/plat-omap/gpio.c: In function '_omap_gpio_init':
arch/arm/plat-omap/gpio.c:1492: error: 'omap_mpuio_device' undeclared (first use in this function)

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/plat-omap/gpio.c

index 3e76ee2..9e1341e 100644 (file)
@@ -1488,7 +1488,7 @@ static int __init _omap_gpio_init(void)
                bank->chip.set = gpio_set;
                if (bank_is_mpuio(bank)) {
                        bank->chip.label = "mpuio";
-#ifdef CONFIG_ARCH_OMAP1
+#ifdef CONFIG_ARCH_OMAP16XX
                        bank->chip.dev = &omap_mpuio_device.dev;
 #endif
                        bank->chip.base = OMAP_MPUIO(0);