summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>1999-07-06 21:44:09 +0000
committerthorpej <thorpej@NetBSD.org>1999-07-06 21:44:09 +0000
commit7b3258b6a7addf77d3e4ceddce6ef0df5a242711 (patch)
treea6d6dd63e13c9f7b2b16825cb70b293fd182709a /sys/dev/usb
parenteeebdec53eadddf91374f34b32350f7ffe4d07a1 (diff)
Make the kthread API a bit more friendly to loadable kernel modules.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/usb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/usb.c b/sys/dev/usb/usb.c
index 227831e1b61..4c4f871b102 100644
--- a/sys/dev/usb/usb.c
+++ b/sys/dev/usb/usb.c
@@ -1,4 +1,4 @@
-/* $NetBSD: usb.c,v 1.13 1999/06/30 06:44:23 augustss Exp $ */
+/* $NetBSD: usb.c,v 1.14 1999/07/06 21:44:12 thorpej Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -175,7 +175,7 @@ USB_ATTACH(usb)
}
sc->sc_bus->use_polling = 0;
- kthread_create_deferred(usb_create_event_thread, sc);
+ kthread_create(usb_create_event_thread, sc);
USB_ATTACH_SUCCESS_RETURN;
}
@@ -186,7 +186,7 @@ usb_create_event_thread(arg)
{
struct usb_softc *sc = arg;
- if (kthread_create(usb_event_thread, sc, &sc->event_thread,
+ if (kthread_create1(usb_event_thread, sc, &sc->event_thread,
"%s", sc->sc_dev.dv_xname)) {
printf("%s: unable to create event thread for\n",
sc->sc_dev.dv_xname);