diff options
author | Paul Mundt <lethal@linux-sh.org> | 2011-08-03 12:33:20 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-08-03 12:33:20 +0900 |
commit | ad75b88ac3792ae6a541d9b9fa84e379bd0b29dd (patch) | |
tree | dcd5414fa3a8cb0d8c55eddde6d6699016d8058e /drivers/tty | |
parent | c027a474a68065391c8773f6e83ed5412657e369 (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')
-rw-r--r-- | drivers/tty/serial/sh-sci.c | 2 |
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, if (p->regtype == SCIx_PROBE_REGTYPE) { ret = sci_probe_regmap(p); - if (unlikely(!ret)) + if (unlikely(ret != 0)) return ret; } |