diff options
Diffstat (limited to 'sys/dev/usb/uscanner.c')
-rw-r--r-- | sys/dev/usb/uscanner.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/dev/usb/uscanner.c b/sys/dev/usb/uscanner.c index fb5de01ddd4..d79802aba41 100644 --- a/sys/dev/usb/uscanner.c +++ b/sys/dev/usb/uscanner.c @@ -1,5 +1,5 @@ -/* $OpenBSD: uscanner.c,v 1.2 2001/01/28 09:43:43 aaron Exp $ */ -/* $NetBSD: uscanner.c,v 1.11 2001/01/07 14:46:32 augustss Exp $ */ +/* $OpenBSD: uscanner.c,v 1.3 2001/05/03 02:20:34 aaron Exp $ */ +/* $NetBSD: uscanner.c,v 1.12 2001/01/23 14:04:14 augustss Exp $ */ /* $FreeBSD$ */ /* @@ -320,6 +320,9 @@ USB_ATTACH(uscanner) UID_ROOT, GID_OPERATOR, 0644, "%s", USBDEVNAME(sc->sc_dev)); #endif + usbd_add_drv_event(USB_EVENT_DRIVER_ATTACH, sc->sc_udev, + USBDEV(sc->sc_dev)); + USB_ATTACH_SUCCESS_RETURN; } @@ -634,6 +637,9 @@ USB_DETACH(uscanner) destroy_dev(dev); #endif + usbd_add_drv_event(USB_EVENT_DRIVER_DETACH, sc->sc_udev, + USBDEV(sc->sc_dev)); + return (0); } |