Check unit number and provide string name for consdev.
Submitted by: HPS
This commit is contained in:
parent
91b010c9d9
commit
acf4080f43
@ -1300,7 +1300,12 @@ CONSOLE_DRIVER(ucom);
|
||||
static void
|
||||
ucom_cnprobe(struct consdev *cp)
|
||||
{
|
||||
cp->cn_pri = CN_NORMAL;
|
||||
if (ucom_cons_unit != -1)
|
||||
cp->cn_pri = CN_NORMAL;
|
||||
else
|
||||
cp->cn_pri = CN_DEAD;
|
||||
|
||||
strlcpy(cp->cn_name, "ucom", sizeof(cp->cn_name));
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
x
Reference in New Issue
Block a user