summaryrefslogtreecommitdiffstats
path: root/sys/pccard
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2003-02-28 05:56:06 +0000
committerimp <imp@FreeBSD.org>2003-02-28 05:56:06 +0000
commit5058936161ec6f5a740e5e93b1c014c2a506408d (patch)
treef11fd458be580e23a9c38802e05225d24f6f1812 /sys/pccard
parent35702bcc11e85632ce942572ae770a56d2e3a656 (diff)
downloadFreeBSD-src-5058936161ec6f5a740e5e93b1c014c2a506408d.zip
FreeBSD-src-5058936161ec6f5a740e5e93b1c014c2a506408d.tar.gz
pccard isn't picky about WHAT major it gets.
Diffstat (limited to 'sys/pccard')
-rw-r--r--sys/pccard/pccard.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/pccard/pccard.c b/sys/pccard/pccard.c
index 1baabf4..8c6397c 100644
--- a/sys/pccard/pccard.c
+++ b/sys/pccard/pccard.c
@@ -78,7 +78,11 @@ static d_write_t crdwrite;
static d_ioctl_t crdioctl;
static d_poll_t crdpoll;
+#if __FreeBSD_version < 500000
#define CDEV_MAJOR 50
+#else
+#define CDEV_MAJOR MAJOR_AUTO
+#endif
static struct cdevsw crd_cdevsw = {
/* open */ crdopen,
/* close */ crdclose,
OpenPOWER on IntegriCloud