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/pccard/pccard.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'sys/pccard/pccard.c') diff --git a/sys/pccard/pccard.c b/sys/pccard/pccard.c index c450951..07be6c1 100644 --- a/sys/pccard/pccard.c +++ b/sys/pccard/pccard.c @@ -28,10 +28,9 @@ * (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: pccard.c,v 1.80 1999/05/31 11:28:48 phk Exp $ + * $Id: pccard.c,v 1.81 1999/08/01 18:12:50 imp Exp $ */ -#include "opt_devfs.h" #include "opt_pcic.h" #include @@ -42,9 +41,6 @@ #include #include #include -#ifdef DEVFS -#include -#endif /*DEVFS*/ #include #include #include @@ -477,10 +473,7 @@ pccard_alloc_slot(struct slot_ctrl *ctrl) MALLOC(slt, struct slot *, sizeof(*slt), M_DEVBUF, M_WAITOK); bzero(slt, sizeof(*slt)); -#ifdef DEVFS - slt->devfs_token = devfs_add_devswf(&crd_cdevsw, - slotno, DV_CHR, 0, 0, 0600, "card%d", slotno); -#endif + make_dev(&crd_cdevsw, slotno, 0, 0, 0600, "card%d", slotno); if (ctrl->extra) { MALLOC(slt->cdata, void *, ctrl->extra, M_DEVBUF, M_WAITOK); bzero(slt->cdata, ctrl->extra); -- cgit v1.1