return 0; 
 uart_idx = con_info->console_uart - 1; if (uart_idx >= OMAP_MAX_NR_PORTS) { printk(KERN_INFO "Console: external UART#%d. " "Not adding it as console this time.\n", uart_idx + 1); return 0; } if (!(uart_info->enabled_uarts & (1 << uart_idx))) { printk(KERN_ERR "Console: Selected UART#%d is " "not enabled for this platform\n", uart_idx + 1); return -1; } line = 0; for (i = 0; i < uart_idx; i++) { if (uart_info->enabled_uarts & (1 << i)) line++; } return add_preferred_console("ttyS", line, opt); 
static int __init omap_add_serial_console(void){	const struct omap_serial_console_config *info;	info = omap_get_config(OMAP_TAG_SERIAL_CONSOLE,			       struct omap_serial_console_config);	if (info != NULL && info->console_uart) {		static char speed[11], *opt = NULL;		if (info->console_speed) {			snprintf(speed, sizeof(speed), "%u", info->console_speed);			opt = speed;		}		return add_preferred_console("ttyS", info->console_uart - 1, opt);	}	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/1a8bfa1eb998af6e650ad26201f7cae9f2a2fdc8/common.c/clean/arch/arm/plat-omap/common.c