diff options
author | 2018-08-12 18:32:18 +0000 | |
---|---|---|
committer | 2018-08-12 18:32:18 +0000 | |
commit | eee2dd38d98a9aad5666822ede6a772bdca45a64 (patch) | |
tree | 912dcc69a9e6b213876acc22c84f8d2e79766970 | |
parent | Add retguard macros for arm64 asm and apply them in the straightforward (diff) | |
download | wireguard-openbsd-eee2dd38d98a9aad5666822ede6a772bdca45a64.tar.xz wireguard-openbsd-eee2dd38d98a9aad5666822ede6a772bdca45a64.zip |
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.
-rw-r--r-- | sys/dev/ic/pluart.c | 4 |
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; |