diff options
author | Russell King | 2009-06-08 20:26:28 +0200 |
---|---|---|
committer | Russell King | 2009-06-08 20:26:28 +0200 |
commit | 2d8d24935d372175786ebefa8a2de8680831b67f (patch) | |
tree | 9969683b85f94b59e58bdc1a42e543be62029cb1 /drivers | |
parent | [ARM] 5536/1: Move clk_add_alias() to arch/arm/common/clkdev.c (diff) | |
parent | MXC : update i.MX21 clock support for USB host. (diff) | |
download | kernel-qcow2-linux-2d8d24935d372175786ebefa8a2de8680831b67f.tar.gz kernel-qcow2-linux-2d8d24935d372175786ebefa8a2de8680831b67f.tar.xz kernel-qcow2-linux-2d8d24935d372175786ebefa8a2de8680831b67f.zip |
Merge branch 'mxc-master' of git://git.pengutronix.de/git/imx/linux-2.6 into devel
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/serial/imx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/serial/imx.c b/drivers/serial/imx.c index 3f5d5a200481..738c8a5f64f2 100644 --- a/drivers/serial/imx.c +++ b/drivers/serial/imx.c @@ -1024,6 +1024,8 @@ imx_console_setup(struct console *co, char *options) if (co->index == -1 || co->index >= ARRAY_SIZE(imx_ports)) co->index = 0; sport = imx_ports[co->index]; + if(sport == NULL) + return -ENODEV; if (options) uart_parse_options(options, &baud, &parity, &bits, &flow); |