X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fserial%2Fsuncore.c;h=5fc4a62173d9c6f0d3b626f135c0a6f478a3626f;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=93909ed99fd8882909987ce78f26493604184632;hpb=db216c3d5e4c040e557a50f8f5d35d5c415e8c1c;p=linux-2.6.git diff --git a/drivers/serial/suncore.c b/drivers/serial/suncore.c index 93909ed99..5fc4a6217 100644 --- a/drivers/serial/suncore.c +++ b/drivers/serial/suncore.c @@ -90,13 +90,13 @@ no_options: cflag = CREAD | HUPCL | CLOCAL; s = mode; - baud = simple_strtoul(s, 0, 0); + baud = simple_strtoul(s, NULL, 0); s = strchr(s, ','); - bits = simple_strtoul(++s, 0, 0); + bits = simple_strtoul(++s, NULL, 0); s = strchr(s, ','); parity = *(++s); s = strchr(s, ','); - stop = simple_strtoul(++s, 0, 0); + stop = simple_strtoul(++s, NULL, 0); s = strchr(s, ','); /* XXX handshake is not handled here. */