summaryrefslogtreecommitdiff
path: root/sys/dev/sio/sio.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/sio/sio.c')
-rw-r--r--sys/dev/sio/sio.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c
index cc310c6e2715..de38f2fdfbca 100644
--- a/sys/dev/sio/sio.c
+++ b/sys/dev/sio/sio.c
@@ -3037,11 +3037,13 @@ siocnattach(port, speed)
u_char cfcr;
u_int divisor;
struct siocnstate sp;
+ int unit = 0; /* XXX random value! */
siocniobase = port;
+ siocnunit = unit;
comdefaultrate = speed;
sio_consdev.cn_pri = CN_NORMAL;
- sio_consdev.cn_dev = makedev(CDEV_MAJOR, 0);
+ sio_consdev.cn_dev = makedev(CDEV_MAJOR, unit);
s = spltty();
@@ -3077,7 +3079,7 @@ siogdbattach(port, speed)
u_char cfcr;
u_int divisor;
struct siocnstate sp;
- int unit = 1; /* XXX !!! */
+ int unit = 1; /* XXX random value! */
siogdbiobase = port;
gdbdefaultrate = speed;