aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/sh-sci.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2011-08-02 23:33:20 -0400
committerPaul Mundt <lethal@linux-sh.org>2011-08-02 23:33:20 -0400
commitad75b88ac3792ae6a541d9b9fa84e379bd0b29dd (patch)
treedcd5414fa3a8cb0d8c55eddde6d6699016d8058e /drivers/tty/serial/sh-sci.c
parentc027a474a68065391c8773f6e83ed5412657e369 (diff)
serial: sh-sci: Fix up default regtype probing.
Presently the default regtype probing inadvertently bails out due to an inverted error check. This fixes it up, and gets platforms without explicit regtype specifications working again. Reported-by: Magnus Damm <damm@opensource.se> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/tty/serial/sh-sci.c')
-rw-r--r--drivers/tty/serial/sh-sci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c
index d0a56235c50e..522f69d3c8ae 100644
--- a/drivers/tty/serial/sh-sci.c
+++ b/drivers/tty/serial/sh-sci.c
@@ -1889,7 +1889,7 @@ static int __devinit sci_init_single(struct platform_device *dev,
1889 1889
1890 if (p->regtype == SCIx_PROBE_REGTYPE) { 1890 if (p->regtype == SCIx_PROBE_REGTYPE) {
1891 ret = sci_probe_regmap(p); 1891 ret = sci_probe_regmap(p);
1892 if (unlikely(!ret)) 1892 if (unlikely(ret != 0))
1893 return ret; 1893 return ret;
1894 } 1894 }
1895 1895