Skip to content

Commit

Permalink
[POWERPC] Move serial_dev_init to device_initcall()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Olof Johansson authored and Paul Mackerras committed Sep 12, 2007
1 parent fb4f0e8 commit ee56c47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/kernel/legacy_serial.c
Original file line number Diff line number Diff line change
@@ -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);


/*

0 comments on commit ee56c47

Please sign in to comment.