summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/sh-sci.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2011-08-03 03:33:20 (GMT)
committerPaul Mundt <lethal@linux-sh.org>2011-08-03 03:33:20 (GMT)
commitad75b88ac3792ae6a541d9b9fa84e379bd0b29dd (patch)
treedcd5414fa3a8cb0d8c55eddde6d6699016d8058e /drivers/tty/serial/sh-sci.c
parentc027a474a68065391c8773f6e83ed5412657e369 (diff)
downloadlinux-ad75b88ac3792ae6a541d9b9fa84e379bd0b29dd.tar.xz
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 d0a5623..522f69d 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,
if (p->regtype == SCIx_PROBE_REGTYPE) {
ret = sci_probe_regmap(p);
- if (unlikely(!ret))
+ if (unlikely(ret != 0))
return ret;
}