static int __init sa1100_serial_init(void) { int i, ret; sa1100_init_ports(); ret = uart_register_driver(&sa1100_reg); if (ret) return ret; for (i = 0; i < NR_PORTS; i++) uart_add_one_port(&sa1100_reg, &sa1100_ports[i].port); return 0; }
static int __init sa1100_serial_init(void) { int ret; printk(KERN_INFO "Serial: SA11x0 driver\n"); sa1100_init_ports(); ret = uart_register_driver(&sa1100_reg); if (ret == 0) { ret = platform_driver_register(&sa11x0_serial_driver); if (ret) uart_unregister_driver(&sa1100_reg); } return ret; }
static int __init sa1100_rs_console_init(void) { sa1100_init_ports(); register_console(&sa1100_console); return 0; }
void __init sa1100_rs_console_init(void) { sa1100_init_ports(); register_console(&sa1100_console); }
static int __init sa1100_serial_init(void) { sa1100_init_ports(); return uart_register_driver(&sa1100_reg); }