diff options
| author | Nick Hibma <n_hibma@FreeBSD.org> | 1999-10-07 21:06:52 +0000 |
|---|---|---|
| committer | Nick Hibma <n_hibma@FreeBSD.org> | 1999-10-07 21:06:52 +0000 |
| commit | 92fc9a510e833bb1596be18b46c4d132be9a847b (patch) | |
| tree | 87b20d3d0f089fa300a43bb7ec921418885b315e /sys/dev/usb | |
| parent | 354b93e124701c2e6f9b4910f897146e12c07686 (diff) | |
Notes
Diffstat (limited to 'sys/dev/usb')
| -rw-r--r-- | sys/dev/usb/ums.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/dev/usb/ums.c b/sys/dev/usb/ums.c index 740300df0abd..92adb9016232 100644 --- a/sys/dev/usb/ums.c +++ b/sys/dev/usb/ums.c @@ -111,6 +111,8 @@ struct ums_softc { # define UMS_ASLEEP 0x01 /* readFromDevice is waiting */ # define UMS_SELECT 0x02 /* select is waiting */ struct selinfo rsel; /* process waiting in select */ + + dev_t dev; /* specfs */ }; #define MOUSE_FLAGS_MASK (HIO_CONST|HIO_RELATIVE) @@ -330,6 +332,9 @@ USB_ATTACH(ums) sc->rsel.si_flags = 0; sc->rsel.si_pid = 0; + sc->dev = make_dev(&ums_cdevsw, device_get_unit(self), UID_ROOT, GID_OPERATOR, + 0644, "ums%d", device_get_unit(self)); + USB_ATTACH_SUCCESS_RETURN; } @@ -367,6 +372,8 @@ ums_detach(device_t self) } #endif + remove_dev(sc->dev); + return 0; } |
