[SUNSAB]: Fix several bugs.
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 17 Sep 2007 23:47:07 +0000 (16:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Sep 2007 23:47:07 +0000 (16:47 -0700)
commit9c5b34806c28195e4d0f2deaa41d8158ca5874e1
treed12e521ee1adcf5130c4c2ae4cc360cf50db07a7
parentc2f828977ba5d17c13debba374ea252d18e5ccfb
[SUNSAB]: Fix several bugs.

* don't register irq until ->startup() (and release in ->shutdown()).
That avoids oopsen with the current tree when interrupt comes before we'd
set up the data structures for ttyb.
* handle console=ttyS... even when OBP talks to screen/keyboard
* register irq handler for each port, let kernel/irq/handle.c
call it for both if needed.  Kills code duplication in sunsab_interrupt().
BTW, there'd been bitrot in it - ttya handling had stopped calling
check_status() on BRK (correctly), ttyb copy of that code had kept the
bogus call in that case.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/serial/sunsab.c