diff options
author | Olof Johansson <olof@lixom.net> | 2007-08-23 02:26:37 +0200 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-09-12 20:09:14 +0200 |
commit | ee56c47440ab04c6a35c835a9bcc4193304adf93 (patch) | |
tree | 6f33509df3949d5e06bf27603d883b7dc65745a0 /arch/powerpc/kernel/legacy_serial.c | |
parent | [POWERPC] Enable GENERIC_ISA_DMA if FSL_ULI1575 to fix compile issue (diff) | |
download | linux-ee56c47440ab04c6a35c835a9bcc4193304adf93.tar.xz linux-ee56c47440ab04c6a35c835a9bcc4193304adf93.zip |
[POWERPC] Move serial_dev_init to device_initcall()
With the I/O space rewrite by BenH, the legacy_serial serial_dev_init()
initcall is now called before I/O space is setup, but it's dependent on
it being available.
Since there's no way to make dependencies between initcalls, we'll just
have to move it to device_initcall(). Yes, it's suboptimal but I'm not
aware of any better solution at this time, and it fixes a regression
from 2.6.22.
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/legacy_serial.c')
-rw-r--r-- | arch/powerpc/kernel/legacy_serial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/legacy_serial.c b/arch/powerpc/kernel/legacy_serial.c index cea8045ba40b..90fa11c72e1c 100644 --- a/arch/powerpc/kernel/legacy_serial.c +++ b/arch/powerpc/kernel/legacy_serial.c @@ -493,7 +493,7 @@ static int __init serial_dev_init(void) return platform_device_register(&serial_device); } -arch_initcall(serial_dev_init); +device_initcall(serial_dev_init); /* |