summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2018-08-12 18:32:19 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2018-08-12 18:32:19 +0000
commit2752b82315f06b1acec44bb37f2da5336b6a874c (patch)
treee3cc994b205d09cba847601f116c8853cab2238f /sys/dev
parentb85ad2a620f0bc4f120a23c38a930fd7e6029982 (diff)
Really overwrite the major of com(4) instead of the hardcoded 12.
Should have been part of the earlier commit that unified armv7 and arm64.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/pluart.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/pluart.c b/sys/dev/ic/pluart.c
index 8f42a3f930c..0f024c0ad34 100644
--- a/sys/dev/ic/pluart.c
+++ b/sys/dev/ic/pluart.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pluart.c,v 1.1 2018/07/02 12:46:20 kettenis Exp $ */
+/* $OpenBSD: pluart.c,v 1.2 2018/08/12 18:32:18 kettenis Exp $ */
/*
* Copyright (c) 2014 Patrick Wildt <patrick@blueri.se>
* Copyright (c) 2005 Dale Rahn <drahn@dalerahn.com>
@@ -779,7 +779,7 @@ pluartcnattach(bus_space_tag_t iot, bus_addr_t iobase, int rate, tcflag_t cflag)
cn_tab = &pluartcons;
cn_tab->cn_dev = makedev(maj, 0);
- cdevsw[12] = pluartdev; /* KLUDGE */
+ cdevsw[maj] = pluartdev; /* KLUDGE */
pluartconsiot = iot;
pluartconsaddr = iobase;