omap: Fix gpio_request calls to happen as arch_initcall
Looks like some boards are calling gpio_request from init_irq. This will make the request_irq fail, as GPIO will be initialized as postcore_initcall. Reported-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:
@@ -281,7 +281,6 @@ static void __init omap_apollon_init_irq(void)
|
||||
omap2_init_common_hw(NULL, NULL);
|
||||
omap_init_irq();
|
||||
omap_gpio_init();
|
||||
apollon_init_smc91x();
|
||||
}
|
||||
|
||||
static void __init apollon_led_init(void)
|
||||
@@ -324,6 +323,7 @@ static void __init omap_apollon_init(void)
|
||||
|
||||
omap2420_mux_init(board_mux, OMAP_PACKAGE_ZAC);
|
||||
|
||||
apollon_init_smc91x();
|
||||
apollon_led_init();
|
||||
apollon_flash_init();
|
||||
apollon_usb_init();
|
||||
|
Reference in New Issue
Block a user