diff options
author | phk <phk@FreeBSD.org> | 2003-04-03 08:49:49 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-04-03 08:49:49 +0000 |
commit | 36382df50bc4a9ba5ae09263ad9f2c7d337b2498 (patch) | |
tree | c20346a0bc8bd2e219d12e41b1fd7bcbc335964c | |
parent | 5f908a4d840bc38473c6e3aba4bce67aed0f70b3 (diff) | |
download | FreeBSD-src-36382df50bc4a9ba5ae09263ad9f2c7d337b2498.zip FreeBSD-src-36382df50bc4a9ba5ae09263ad9f2c7d337b2498.tar.gz |
Don't use dkmakeminor(), it has nothing to do with CDroms.
-rw-r--r-- | sys/pc98/pc98/wd_cd.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/pc98/pc98/wd_cd.c b/sys/pc98/pc98/wd_cd.c index 4bb2eb8..439ddd2 100644 --- a/sys/pc98/pc98/wd_cd.c +++ b/sys/pc98/pc98/wd_cd.c @@ -33,7 +33,6 @@ #include <sys/kernel.h> #include <sys/malloc.h> #include <sys/bio.h> -#include <sys/disklabel.h> #include <sys/devicestat.h> #include <sys/cdio.h> #include <sys/fcntl.h> @@ -116,13 +115,10 @@ acd_init_lun(struct atapi *ata, int unit, struct atapi_params *ap, int lun) ptr->slot = -1; ptr->changer_info = NULL; - pdev = make_dev(&acd_cdevsw, dkmakeminor(lun, 0, 0), + pdev = make_dev(&acd_cdevsw, lun, UID_ROOT, GID_OPERATOR, 0640, "wcd%da", lun); make_dev_alias(pdev, "rwcd%da", lun); - pdev->si_drv1 = ptr; - - pdev = make_dev(&acd_cdevsw, dkmakeminor(lun, 0, RAW_PART), - UID_ROOT, GID_OPERATOR, 0640, "wcd%dc", lun); + make_dev_alias(pdev, "wcd%dc", lun); make_dev_alias(pdev, "rwcd%dc", lun); pdev->si_drv1 = ptr; |