diff options
Diffstat (limited to 'arch/arm/mach-omap2/serial.c')
-rw-r--r-- | arch/arm/mach-omap2/serial.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index c1b93c752d70..0cc79d34c9f0 100644 --- a/arch/arm/mach-omap2/serial.c +++ b/arch/arm/mach-omap2/serial.c | |||
@@ -313,8 +313,11 @@ void __init omap_serial_init_port(struct omap_board_data *bdata, | |||
313 | 313 | ||
314 | pdev = omap_device_build(name, uart->num, oh, pdata, pdata_size, | 314 | pdev = omap_device_build(name, uart->num, oh, pdata, pdata_size, |
315 | NULL, 0, false); | 315 | NULL, 0, false); |
316 | WARN(IS_ERR(pdev), "Could not build omap_device for %s: %s.\n", | 316 | if (IS_ERR(pdev)) { |
317 | name, oh->name); | 317 | WARN(1, "Could not build omap_device for %s: %s.\n", name, |
318 | oh->name); | ||
319 | return; | ||
320 | } | ||
318 | 321 | ||
319 | if ((console_uart_id == bdata->id) && no_console_suspend) | 322 | if ((console_uart_id == bdata->id) && no_console_suspend) |
320 | omap_device_disable_idle_on_suspend(pdev); | 323 | omap_device_disable_idle_on_suspend(pdev); |