Skip to content

Commit

Permalink
serial: sh-sci: Fix up default regtype probing.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mundt committed Aug 3, 2011
1 parent c027a47 commit ad75b88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/serial/sh-sci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit ad75b88

Please sign in to comment.