From eee2dd38d98a9aad5666822ede6a772bdca45a64 Mon Sep 17 00:00:00 2001 From: kettenis Date: Sun, 12 Aug 2018 18:32:18 +0000 Subject: [PATCH] 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. --- sys/dev/ic/pluart.c | 4 ++-- 1 file 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 * Copyright (c) 2005 Dale Rahn @@ -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; -- 2.20.1