git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af30053
)
serial: st-asc: Don't call BUG in asc_console_setup()
author
Maxime COQUELIN
<maxime.coquelin@st.com>
Thu, 24 Jul 2014 12:02:55 +0000
(14:02 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sun, 27 Jul 2014 18:05:08 +0000
(11:05 -0700)
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 <maxime.coquelin@st.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/st-asc.c
patch
|
blob
|
history
diff --cc
drivers/tty/serial/st-asc.c
Simple merge