diff options
author | Paul Mundt <lethal@linux-sh.org> | 2011-08-02 23:33:20 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-08-02 23:33:20 -0400 |
commit | ad75b88ac3792ae6a541d9b9fa84e379bd0b29dd (patch) | |
tree | dcd5414fa3a8cb0d8c55eddde6d6699016d8058e /drivers/tty/serial/sh-sci.c | |
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/serial/sh-sci.c')
-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, | |||
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 | ||