diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2000-12-07 22:33:12 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2000-12-07 22:33:12 +0000 |
| commit | 7891600907fe0ef7753187dbad294bd3c11c6116 (patch) | |
| tree | fd464c1556ce45c1f1b8aaa5fd21b861927e7425 /sys/dev/ppbus/lpt.c | |
| parent | 69d683d52a17737aa6b359ae93831872f05d5d40 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ppbus/lpt.c')
| -rw-r--r-- | sys/dev/ppbus/lpt.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/dev/ppbus/lpt.c b/sys/dev/ppbus/lpt.c index e6c0f6bb6d66..076b808af9f7 100644 --- a/sys/dev/ppbus/lpt.c +++ b/sys/dev/ppbus/lpt.c @@ -84,8 +84,6 @@ #include "ppbus_if.h" #include <dev/ppbus/ppbio.h> -MALLOC_DEFINE(M_LPT, "lpt", "LPT buffers"); - #ifndef LPT_DEBUG #define lprintf(args) #else @@ -551,8 +549,8 @@ lptopen(dev_t dev, int flags, int fmt, struct proc *p) ppb_wctr(ppbus, sc->sc_control); sc->sc_state = OPEN; - sc->sc_inbuf = malloc(BUFSIZE, M_LPT, M_WAITOK); - sc->sc_statbuf = malloc(BUFSTATSIZE, M_LPT, M_WAITOK); + sc->sc_inbuf = malloc(BUFSIZE, M_DEVBUF, M_WAITOK); + sc->sc_statbuf = malloc(BUFSTATSIZE, M_DEVBUF, M_WAITOK); sc->sc_xfercnt = 0; splx(s); @@ -605,8 +603,8 @@ lptclose(dev_t dev, int flags, int fmt, struct proc *p) break; ppb_wctr(ppbus, LPC_NINIT); - free(sc->sc_inbuf, M_LPT); - free(sc->sc_statbuf, M_LPT); + free(sc->sc_inbuf, M_DEVBUF); + free(sc->sc_statbuf, M_DEVBUF); end_close: /* release the bus anyway |
