ARM: OMAP1: ams-delta: register MODEM device earlier
authorJanusz Krzysztofik <jmkrzyszt@gmail.com>
Sun, 9 Sep 2018 23:44:19 +0000 (01:44 +0200)
committerTony Lindgren <tony@atomide.com>
Thu, 20 Sep 2018 21:14:27 +0000 (14:14 -0700)
commitd3e952ad300e288e4f5bbdb2203a5a8c69e0946e
tree03814be807f2c83abaad43ed870aba72942cb807
parent1464d031c45da44da6988623c0978b63241df40b
ARM: OMAP1: ams-delta: register MODEM device earlier

Amstrad Delta MODEM device used to be initialized at arch_initcall
before it was once moved to late_initcall by commit f7519d8c8290 ("ARM:
OMAP1: ams-delta: register latch dependent devices later"). The purpose
of that change was to postpone initialization of devices which depended
on latch2 pins until latch2 converted to GPIO device was ready.

After recent fixes to GPIO handling, it was possible to moove
registration of most of those device back to where they were before.
The same can be safely done with the MODEM device as initialization
of GPIO pins it depends on was moved to machine_init by preceding
patch.

Move registration of the MODEM device to arch_initcall_sync, not to
arch_initcall, so it is never exposed to potential conflict in
registration order hazard against OMAP serial ports.

Signed-off-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap1/board-ams-delta.c