1
0

init: Initialize serial subsystem before init_earlyinitcalls()

Otherwise, the serial sybsystem isn't initialized before the serial
drivers attempt to register themselves.
This commit is contained in:
2012-10-06 14:53:00 -04:00
parent 9d86813d8c
commit 8cb4100463
2 changed files with 14 additions and 4 deletions

View File

@ -33,8 +33,12 @@ struct serial_dev *serial_first_device() {
return first_serial_dev;
}
/*
* Initialize the serial sybsystem.
* Note: this is called directly from the kernel initialization as opposed to
* being an initcall because it has to be called before the serial drivers get
* initialized in earlyinitcalls.
*/
void serial_init() {
first_serial_dev = 0;
}
driversubsys_initcall(serial_init);