/* Note: Even if setup.c doesn't register sal_console_early, unregistering it here doesn't hurt anything.  */
static int __init sn_sal_serial_console_init(void)
/* Note: Even if setup.c doesn't register sal_console_early, unregistering it here doesn't hurt anything.  */
static int __init sn_sal_serial_console_init(void)
{
	if (ia64_platform_is("sn2")) {
		sn_sal_switch_to_asynch(&sal_console_port);
		DPRINTF("sn_sal_serial_console_init : register console\n");
		register_console(&sal_console);
		unregister_console(&sal_console_early);
	}
	return 0;
}