diff options
Diffstat (limited to 'sys/arch/pica/dev/lpt.c')
-rw-r--r-- | sys/arch/pica/dev/lpt.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/sys/arch/pica/dev/lpt.c b/sys/arch/pica/dev/lpt.c index 75c220bc09e..22809699cab 100644 --- a/sys/arch/pica/dev/lpt.c +++ b/sys/arch/pica/dev/lpt.c @@ -107,8 +107,11 @@ int lptprobe __P((struct device *, void *, void *)); void lptattach __P((struct device *, struct device *, void *)); int lptintr __P((void *)); -struct cfdriver lptcd = { - NULL, "lpt", lptprobe, lptattach, DV_TTY, sizeof(struct lpt_softc) +struct cfattach lpt_ca = { + sizeof(struct lpt_softc), lptprobe, lptattach +}; +struct cfdriver lpt_cd = { + NULL, "lpt", DV_TTY, NULL, 0 }; #define LPTUNIT(s) (minor(s) & 0x1f) @@ -251,9 +254,9 @@ lptopen(dev, flag) int error; int spin; - if (unit >= lptcd.cd_ndevs) + if (unit >= lpt_cd.cd_ndevs) return ENXIO; - sc = lptcd.cd_devs[unit]; + sc = lpt_cd.cd_devs[unit]; if (!sc) return ENXIO; @@ -354,7 +357,7 @@ lptclose(dev, flag) int flag; { int unit = LPTUNIT(dev); - struct lpt_softc *sc = lptcd.cd_devs[unit]; + struct lpt_softc *sc = lpt_cd.cd_devs[unit]; int iobase = sc->sc_iobase; if (sc->sc_count) @@ -404,7 +407,7 @@ lptwrite(dev, uio) dev_t dev; struct uio *uio; { - struct lpt_softc *sc = lptcd.cd_devs[LPTUNIT(dev)]; + struct lpt_softc *sc = lpt_cd.cd_devs[LPTUNIT(dev)]; size_t n; int error = 0; |