diff options
Diffstat (limited to 'arch/arm/mach-omap2/serial.c')
| -rw-r--r-- | arch/arm/mach-omap2/serial.c | 12 | 
1 files changed, 7 insertions, 5 deletions
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index c1b93c752d7..62763efb46a 100644 --- a/arch/arm/mach-omap2/serial.c +++ b/arch/arm/mach-omap2/serial.c @@ -229,9 +229,8 @@ static int __init omap_serial_early_init(void)  			if (console_loglevel >= 10) {  				uart_debug = true; -				pr_info("%s used as console in debug mode" -						" uart%d clocks will not be" -						" gated", uart_name, uart->num); +				pr_info("%s used as console in debug mode: uart%d clocks will not be gated", +					uart_name, uart->num);  			}  			if (cmdline_find_option("no_console_suspend")) @@ -313,8 +312,11 @@ void __init omap_serial_init_port(struct omap_board_data *bdata,  	pdev = omap_device_build(name, uart->num, oh, pdata, pdata_size,  				 NULL, 0, false); -	WARN(IS_ERR(pdev), "Could not build omap_device for %s: %s.\n", -	     name, oh->name); +	if (IS_ERR(pdev)) { +		WARN(1, "Could not build omap_device for %s: %s.\n", name, +		     oh->name); +		return; +	}  	if ((console_uart_id == bdata->id) && no_console_suspend)  		omap_device_disable_idle_on_suspend(pdev);  |