From 663cbe4fc26065f7af7d10faaee492a626156145 Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 23 Aug 1999 20:59:21 +0000 Subject: Convert DEVFS hooks in (most) drivers to make_dev(). Diskslice/label code not yet handled. Vinum, i4b, alpha, pc98 not dealt with (left to respective Maintainers) Add the correct hook for devfs to kern_conf.c The net result of this excercise is that a lot less files depends on DEVFS, and devtoname() gets more sensible output in many cases. A few drivers had minor additional cleanups performed relating to cdevsw registration. A few drivers don't register a cdevsw{} anymore, but only use make_dev(). --- sys/i386/isa/wst.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'sys/i386/isa/wst.c') diff --git a/sys/i386/isa/wst.c b/sys/i386/isa/wst.c index 94d4146..7337796 100644 --- a/sys/i386/isa/wst.c +++ b/sys/i386/isa/wst.c @@ -25,13 +25,12 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: wst.c,v 1.22 1999/05/30 16:52:30 phk Exp $ + * $Id: wst.c,v 1.23 1999/05/31 11:26:39 phk Exp $ */ #include "wdc.h" #include "wst.h" #include "opt_ddb.h" -#include "opt_devfs.h" #if NWST > 0 && NWDC > 0 @@ -42,9 +41,6 @@ #include #include #include -#ifdef DEVFS -#include -#endif #include #include @@ -198,10 +194,6 @@ struct wst { struct atapi_params *param; /* Drive parameters table */ struct wst_header header; /* MODE SENSE param header */ struct wst_cappage cap; /* Capabilities page info */ -#ifdef DEVFS - void *cdevs; - void *bdevs; -#endif }; static struct wst *wsttab[NUNIT]; /* Drive info by unit number */ @@ -274,10 +266,7 @@ wstattach(struct atapi *ata, int unit, struct atapi_params *ap, int debug) wst_describe(t); wstnlun++; -#ifdef DEVFS - t->cdevs = devfs_add_devswf(&wst_cdevsw, 0, DV_CHR, UID_ROOT, GID_OPERATOR, - 0640, "rwst%d", t->lun); -#endif /* DEVFS */ + make_dev(&wst_cdevsw, 0, UID_ROOT, GID_OPERATOR, 0640, "rwst%d", t->lun); return(1); } -- cgit v1.1