提交 ad75b88a 编写于 作者: P Paul Mundt

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: NMagnus Damm <damm@opensource.se>
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 c027a474
...@@ -1889,7 +1889,7 @@ static int __devinit sci_init_single(struct platform_device *dev, ...@@ -1889,7 +1889,7 @@ static int __devinit sci_init_single(struct platform_device *dev,
if (p->regtype == SCIx_PROBE_REGTYPE) { if (p->regtype == SCIx_PROBE_REGTYPE) {
ret = sci_probe_regmap(p); ret = sci_probe_regmap(p);
if (unlikely(!ret)) if (unlikely(ret != 0))
return ret; return ret;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册