From 498f3eb724b643242af4de4b6d736f6f806f6f0c Mon Sep 17 00:00:00 2001 From: Tony Lindgren Date: Tue, 18 Oct 2005 20:50:56 +0300 Subject: [PATCH] ARM: OMAP: Make sure omap_gpio_init is called for all boards Make sure omap_gpio_init is called for all boards --- arch/arm/mach-omap1/board-generic.c | 3 +++ arch/arm/mach-omap1/board-innovator.c | 2 ++ arch/arm/mach-omap1/board-osk.c | 2 ++ arch/arm/mach-omap1/board-palmte.c | 3 +++ arch/arm/mach-omap1/board-perseus2.c | 2 ++ arch/arm/mach-omap2/board-generic.c | 3 +++ arch/arm/mach-omap2/board-h4.c | 2 ++ 7 files changed, 17 insertions(+) diff --git a/arch/arm/mach-omap1/board-generic.c b/arch/arm/mach-omap1/board-generic.c index 8f88ce0abb6..b5535eac1d2 100644 --- a/arch/arm/mach-omap1/board-generic.c +++ b/arch/arm/mach-omap1/board-generic.c @@ -28,9 +28,12 @@ #include #include +extern int omap_gpio_init(void); + static void __init omap_generic_init_irq(void) { omap_init_irq(); + omap_gpio_init(); } /* assume no Mini-AB port */ diff --git a/arch/arm/mach-omap1/board-innovator.c b/arch/arm/mach-omap1/board-innovator.c index c1618850438..f4dc3193763 100644 --- a/arch/arm/mach-omap1/board-innovator.c +++ b/arch/arm/mach-omap1/board-innovator.c @@ -36,6 +36,8 @@ #include #include +extern int omap_gpio_init(void); + static struct mtd_partition innovator_partitions[] = { /* bootloader (U-Boot, etc) in first sector */ { diff --git a/arch/arm/mach-omap1/board-osk.c b/arch/arm/mach-omap1/board-osk.c index b5600568e90..d458d86151f 100644 --- a/arch/arm/mach-omap1/board-osk.c +++ b/arch/arm/mach-omap1/board-osk.c @@ -46,6 +46,8 @@ #include #include +extern int omap_gpio_init(void); + static struct mtd_partition osk_partitions[] = { /* bootloader (U-Boot, etc) in first sector */ { diff --git a/arch/arm/mach-omap1/board-palmte.c b/arch/arm/mach-omap1/board-palmte.c index b8aea2da7ea..48697d2c439 100644 --- a/arch/arm/mach-omap1/board-palmte.c +++ b/arch/arm/mach-omap1/board-palmte.c @@ -32,9 +32,12 @@ #include #include +extern int omap_gpio_init(void); + static void __init omap_generic_init_irq(void) { omap_init_irq(); + omap_gpio_init(); } static struct omap_usb_config palmte_usb_config __initdata = { diff --git a/arch/arm/mach-omap1/board-perseus2.c b/arch/arm/mach-omap1/board-perseus2.c index 43021aa628b..7c7d26713ef 100644 --- a/arch/arm/mach-omap1/board-perseus2.c +++ b/arch/arm/mach-omap1/board-perseus2.c @@ -31,6 +31,8 @@ #include #include +extern int omap_gpio_init(void); + static struct resource smc91x_resources[] = { [0] = { .start = H2P2_DBG_FPGA_ETHR_START, /* Physical */ diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c index c602e7a3d93..02ea9e12d84 100644 --- a/arch/arm/mach-omap2/board-generic.c +++ b/arch/arm/mach-omap2/board-generic.c @@ -31,9 +31,12 @@ #include #include +extern int omap_gpio_init(void); + static void __init omap_generic_init_irq(void) { omap_init_irq(); + omap_gpio_init(); } static struct omap_uart_config generic_uart_config __initdata = { diff --git a/arch/arm/mach-omap2/board-h4.c b/arch/arm/mach-omap2/board-h4.c index 6c15efca003..7492d8d57aa 100644 --- a/arch/arm/mach-omap2/board-h4.c +++ b/arch/arm/mach-omap2/board-h4.c @@ -34,6 +34,8 @@ #include #include +extern int omap_gpio_init(void); + static struct mtd_partition h4_partitions[] = { /* bootloader (U-Boot, etc) in first sector */ { -- 2.41.1