X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=drivers%2Ftty%2Fserial%2Fsamsung.c;h=808d171bd1af117d3d0de4c7dab403223d3f0735;hp=626e75b60caa6f72139601b64505bb5abc094a12;hb=df47dba115bbac341b8d25bf851ad3d831fc0e03;hpb=f64965a7001c02be726e6df396136ac4f93258df diff --git a/drivers/tty/serial/samsung.c b/drivers/tty/serial/samsung.c index 626e75b60caa..808d171bd1af 100644 --- a/drivers/tty/serial/samsung.c +++ b/drivers/tty/serial/samsung.c @@ -1237,8 +1237,6 @@ int s3c24xx_serial_probe(struct platform_device *dev, dbg("s3c24xx_serial_probe(%p, %p) %d\n", dev, info, probe_index); ourport = &s3c24xx_serial_ports[probe_index]; - probe_index++; - dbg("%s: initialising port %p...\n", __func__, ourport); ret = s3c24xx_serial_init_port(ourport, info, dev); @@ -1275,6 +1273,8 @@ int __devexit s3c24xx_serial_remove(struct platform_device *dev) uart_remove_one_port(&s3c24xx_uart_drv, port); } + probe_index++; + return 0; }