diff options
author | phk <phk@FreeBSD.org> | 2003-01-20 11:23:00 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-01-20 11:23:00 +0000 |
commit | 9241d940166f9935217e1d216fa50d231051f664 (patch) | |
tree | fc0a7d198edd05b2e5fc7485953bc13a7ef76ada /sys | |
parent | cca3e5de49a48c4060b49c776811732c491d1077 (diff) | |
download | FreeBSD-src-9241d940166f9935217e1d216fa50d231051f664.zip FreeBSD-src-9241d940166f9935217e1d216fa50d231051f664.tar.gz |
Remove need for <sys/diskslice.h> but retain numerical compatibilty just in case.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/geom/geom_disk.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/geom/geom_disk.c b/sys/geom/geom_disk.c index ddfb193..76c613f 100644 --- a/sys/geom/geom_disk.c +++ b/sys/geom/geom_disk.c @@ -45,7 +45,6 @@ #include <sys/bio.h> #include <sys/conf.h> #include <sys/disk.h> -#include <sys/diskslice.h> #include <sys/disklabel.h> #include <sys/malloc.h> #include <sys/sysctl.h> @@ -256,7 +255,7 @@ disk_create(int unit, struct disk *dp, int flags, struct cdevsw *cdevsw, struct dp->d_devsw = cdevsw; dev->si_devsw = cdevsw; dev->si_disk = dp; - dev->si_udev = dkmakeminor(unit, WHOLE_DISK_SLICE, RAW_PART); + dev->si_udev = dkmakeminor(unit, 1, RAW_PART); sprintf(dev->si_name, "%s%d", cdevsw->d_name, unit); g_call_me(g_disk_create, dev); return (dev); |