From: kettenis Date: Sun, 12 Aug 2018 18:32:18 +0000 (+0000) Subject: Really overwrite the major of com(4) instead of the hardcoded 12. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=eee2dd38d98a9aad5666822ede6a772bdca45a64;p=openbsd 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. --- 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;