|
|
| version 1.8, 2004/05/13 23:49:19 | version 1.9, 2004/05/19 22:52:48 |
|---|---|
| Line 206 mly_attach(struct mly_softc *sc) | Line 206 mly_attach(struct mly_softc *sc) |
| /* | /* |
| * Create the control device. | * Create the control device. |
| */ | */ |
| sc->mly_dev_t = make_dev(&mly_cdevsw, device_get_unit(sc->mly_dev), UID_ROOT, GID_OPERATOR, | cdevsw_add(&mly_cdevsw, -1, device_get_unit(sc->mly_dev)); |
| S_IRUSR | S_IWUSR, "mly%d", device_get_unit(sc->mly_dev)); | sc->mly_dev_t = make_dev(&mly_cdevsw, device_get_unit(sc->mly_dev), |
| UID_ROOT, GID_OPERATOR, S_IRUSR | S_IWUSR, | |
| "mly%d", device_get_unit(sc->mly_dev)); | |
| sc->mly_dev_t->si_drv1 = sc; | sc->mly_dev_t->si_drv1 = sc; |
| /* enable interrupts now */ | /* enable interrupts now */ |