Skip to content

Commit 58a5c67

Browse files
committed
parisc/sticon: Always register sticon console driver
If the ROM provides functional STI routines, always register the sticon driver, even if the serial console was choosen as boot device. Additionally, in that case, do not make the sticon driver the default output console device. Signed-off-by: Helge Deller <deller@gmx.de>
1 parent 4a770b4 commit 58a5c67

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

drivers/video/console/sticon.c

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -348,14 +348,13 @@ static int __init sticonsole_init(void)
348348
if (!sticon_sti)
349349
return -ENODEV;
350350

351-
if (conswitchp == &dummy_con) {
352-
printk(KERN_INFO "sticon: Initializing STI text console.\n");
353-
console_lock();
354-
err = do_take_over_console(&sti_con, 0, MAX_NR_CONSOLES - 1, 1);
355-
console_unlock();
356-
return err;
357-
}
358-
return 0;
351+
pr_info("sticon: Initializing STI text console.\n");
352+
console_lock();
353+
err = do_take_over_console(&sti_con, 0, MAX_NR_CONSOLES - 1,
354+
PAGE0->mem_cons.cl_class != CL_DUPLEX);
355+
console_unlock();
356+
357+
return err;
359358
}
360359

361360
module_init(sticonsole_init);

0 commit comments

Comments
 (0)