]> git.baikalelectronics.ru Git - kernel.git/commit
sh: Fix boot crash related to SCI
authorRafael J. Wysocki <rjw@sisk.pl>
Sun, 7 Aug 2011 22:26:50 +0000 (00:26 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 7 Aug 2011 22:51:45 +0000 (15:51 -0700)
commit7d5251b39b9d24ab7116a849ad5a9475c87544fb
treef790c70af791b6ad25cffcb10218ace9dee52896
parent8e76df243a15dd4fb8d66db79584b03695aa1e6d
sh: Fix boot crash related to SCI

Commit d006199e72a9 ("serial: sh-sci: Regtype probing doesn't need to be
fatal.") made sci_init_single() return when sci_probe_regmap() succeeds,
although it should return when sci_probe_regmap() fails.  This causes
systems using the serial sh-sci driver to crash during boot.

Fix the problem by using the right return condition.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/tty/serial/sh-sci.c