summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorGordon Willem Klok <gwk@cvs.openbsd.org>2007-06-01 05:23:50 +0000
committerGordon Willem Klok <gwk@cvs.openbsd.org>2007-06-01 05:23:50 +0000
commit38941110e226cedb7c40f10d71f5f62cb24aa3c1 (patch)
treedea05849998b1d3282068379976bbd3686711666 /sys
parentb8de34ca2901324ba03c3e152d370d186d4dcc64 (diff)
Remove the hci_enable now done in a higher layer.
ok uwe
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb/ubt.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/sys/dev/usb/ubt.c b/sys/dev/usb/ubt.c
index ce4ca8beb56..03085227d96 100644
--- a/sys/dev/usb/ubt.c
+++ b/sys/dev/usb/ubt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ubt.c,v 1.2 2007/05/31 05:07:19 gwk Exp $ */
+/* $OpenBSD: ubt.c,v 1.3 2007/06/01 05:23:49 gwk Exp $ */
/*-
* Copyright (c) 2006 Itronix Inc.
@@ -84,7 +84,6 @@
#include <sys/proc.h>
#include <sys/sysctl.h>
#include <sys/systm.h>
-#include <sys/kthread.h>
#include <dev/usb/usb.h>
#include <dev/usb/usbdi.h>
@@ -251,8 +250,6 @@ USB_DECLARE_DRIVER(ubt);
static int ubt_set_isoc_config(struct ubt_softc *);
static void ubt_abortdealloc(struct ubt_softc *);
-void ubt_create_thread(void *);
-void ubt_thread(void *);
/*
* Match against the whole device, since we want to take
* both interfaces. If a device should be ignored then add
@@ -430,26 +427,11 @@ ubt_attach(struct device *parent, struct device *self, void *aux)
usbd_add_drv_event(USB_EVENT_DRIVER_ATTACH, sc->sc_udev,
USBDEV(sc->sc_dev));
- kthread_create_deferred(ubt_create_thread, sc);
sc->sc_ok = 1;
return;
}
-void
-ubt_create_thread(void *v)
-{
- kthread_create(ubt_thread, v, NULL, "ubt");
-}
-
-void
-ubt_thread(void *v)
-{
- struct ubt_softc *sc = (struct ubt_softc *)v;
- hci_enable(&sc->sc_unit);
- kthread_exit(0);
-}
-
int
ubt_detach(struct device *self, int flags)
{