From: Maxime COQUELIN Date: Thu, 24 Jul 2014 12:02:55 +0000 (+0200) Subject: serial: st-asc: Don't call BUG in asc_console_setup() X-Git-Tag: omap-for-v3.17/fixes-against-rc2~165^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b4e79ae452613a9d391cf1e5ab7e9a49241ad28;p=pandora-kernel.git serial: st-asc: Don't call BUG in asc_console_setup() In order to prevent an asc instance to be used as early console, BUG_ON is used on either mapbase or membase being NULL. Problem is that this condition is also true when we set console to be a ttyASx different to the first asc instance being probed. Instead of calling BUG_ON, it now returns -ENXIO when either mapbase or membase is NULL. Signed-off-by: Maxime Coquelin Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed