Initialize the cn_name instead of the cn_dev
This commit is contained in:
parent
d31593c1a5
commit
2f06c3e7f2
@ -283,7 +283,8 @@ static void
|
||||
ofw_cons_init(struct consdev *cp)
|
||||
{
|
||||
|
||||
cp->cn_dev = makedev(CDEV_MAJOR, 0);
|
||||
/* XXX: This is the alias, but that should be good enough */
|
||||
sprintf(cp->cn_name, "ofwcons");
|
||||
cp->cn_tp = ofw_tp;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user