]> git.hungrycats.org Git - linux/commit
[PATCH] v850: Workaround for tty-driver init-order problem
authorAndrew Morton <akpm@osdl.org>
Wed, 22 Oct 2003 01:23:51 +0000 (18:23 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 22 Oct 2003 01:23:51 +0000 (18:23 -0700)
commit8ec459a348f11107969748fbb93e430958117011
treea965905bdba2cbd5e2ab9a3682aba2f6c85a6c5b
parent6233eaefb18dcf0954d5bb07e70044ec8464ea3b
[PATCH] v850: Workaround for tty-driver init-order problem

From: miles@lsi.nec.co.jp (Miles Bader)

Use `late_initcall' instead of just `__initcall' as a workaround for
the fact that (1) simcons_tty_init can't be called before tty_init,
(2) tty_init is called via `module_init', (3) if statically linked,
module_init == device_init, and (4) there's no ordering of init lists.

We can do this easily because simcons is always statically linked, but
other tty drivers that depend on tty_init and which must use
`module_init' to declare their init routines are likely to be broken.
arch/v850/kernel/simcons.c