summaryrefslogtreecommitdiffstats
path: root/sys/dev/ofw
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-02-21 19:42:58 +0000
committerphk <phk@FreeBSD.org>2004-02-21 19:42:58 +0000
commitdf397dedeab80f98300da9e5999d17a57c01b19f (patch)
treec4705f5f800de96d25d8356b2711c664dabcd41e /sys/dev/ofw
parentab77c85da2c48c6a8b74ed533d4b739b5afeb405 (diff)
downloadFreeBSD-src-df397dedeab80f98300da9e5999d17a57c01b19f.zip
FreeBSD-src-df397dedeab80f98300da9e5999d17a57c01b19f.tar.gz
Device megapatch 1/6:
Free approx 86 major numbers with a mostly automatically generated patch. A number of strategic drivers have been left behind by caution, and a few because they still (ab)use their major number.
Diffstat (limited to 'sys/dev/ofw')
-rw-r--r--sys/dev/ofw/ofw_console.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/ofw/ofw_console.c b/sys/dev/ofw/ofw_console.c
index a0e29ea..a4b5c8f 100644
--- a/sys/dev/ofw/ofw_console.c
+++ b/sys/dev/ofw/ofw_console.c
@@ -51,7 +51,6 @@ static d_open_t ofw_dev_open;
static d_close_t ofw_dev_close;
static d_ioctl_t ofw_dev_ioctl;
-#define CDEV_MAJOR 97
static struct cdevsw ofw_cdevsw = {
.d_open = ofw_dev_open,
@@ -61,7 +60,6 @@ static struct cdevsw ofw_cdevsw = {
.d_ioctl = ofw_dev_ioctl,
.d_poll = ttypoll,
.d_name = "ofw",
- .d_maj = CDEV_MAJOR,
};
static struct tty *ofw_tp = NULL;
@@ -106,7 +104,7 @@ cn_drvinit(void *unused)
}
}
-SYSINIT(cndev, SI_SUB_CONFIGURE, SI_ORDER_MIDDLE + CDEV_MAJOR, cn_drvinit, NULL)
+SYSINIT(cndev, SI_SUB_CONFIGURE, SI_ORDER_MIDDLE, cn_drvinit, NULL)
static int stdin;
static int stdout;
OpenPOWER on IntegriCloud