From ea16f6fe64255568efd728efc4571c9b5cd78091 Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 3 Nov 2003 10:19:33 +0000 Subject: [PATCH] Free major#100 --- sys/conf/majors | 1 - sys/i386/i386/elan-mmcr.c | 4 +--- sys/pci/xrpu.c | 2 -- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/sys/conf/majors b/sys/conf/majors index cb527af231ea..929b628f7f8e 100644 --- a/sys/conf/majors +++ b/sys/conf/majors @@ -105,7 +105,6 @@ 97 *prom Alpha PROM console 98 loe Loopback pseudo-ethernet (sbabkin@dcn.att.com) 99 ct Cronyx/Tau serial adaptor -100 *xrpu Xilinx Reprogrammable Processing Unit 103 *streams SVR4 Streams emulation 104 *xpt CAM Transport Layer Services 105 *iic I2C bus generic i/o diff --git a/sys/i386/i386/elan-mmcr.c b/sys/i386/i386/elan-mmcr.c index 67fe5f2907d5..dd89af6381df 100644 --- a/sys/i386/i386/elan-mmcr.c +++ b/sys/i386/i386/elan-mmcr.c @@ -172,13 +172,11 @@ static d_mmap_t elan_mmap; #define ELAN_MMCR 0 #define ELAN_ERRLED 1 -#define CDEV_MAJOR 100 /* Share with xrpu */ static struct cdevsw elan_cdevsw = { .d_write = elan_write, .d_ioctl = elan_ioctl, .d_mmap = elan_mmap, .d_name = "elan", - .d_maj = CDEV_MAJOR, }; static void @@ -196,7 +194,7 @@ elan_drvinit(void) return; } -SYSINIT(elan, SI_SUB_PSEUDO, SI_ORDER_MIDDLE+CDEV_MAJOR,elan_drvinit,NULL); +SYSINIT(elan, SI_SUB_PSEUDO, SI_ORDER_MIDDLE, elan_drvinit, NULL); #define LED_ON() do {elan_mmcr[0xc34 / 2] = 0x200;} while(0) #define LED_OFF() do {elan_mmcr[0xc38 / 2] = 0x200;} while(0) diff --git a/sys/pci/xrpu.c b/sys/pci/xrpu.c index 08dbe8262f8d..d6c6cd336ef0 100644 --- a/sys/pci/xrpu.c +++ b/sys/pci/xrpu.c @@ -42,14 +42,12 @@ static d_close_t xrpu_close; static d_ioctl_t xrpu_ioctl; static d_mmap_t xrpu_mmap; -#define CDEV_MAJOR 100 static struct cdevsw xrpu_cdevsw = { .d_open = xrpu_open, .d_close = xrpu_close, .d_ioctl = xrpu_ioctl, .d_mmap = xrpu_mmap, .d_name = "xrpu", - .d_maj = CDEV_MAJOR, }; static MALLOC_DEFINE(M_XRPU, "xrpu", "XRPU related");