diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2006-08-18 23:08:46 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2006-08-18 23:08:46 +0000 |
commit | ad21c599a0c55aa2564f82ca09ff0807ff9e825f (patch) | |
tree | 66540c55787c4ec63660be876c5f64adc574c862 /sys | |
parent | 1c2480485a8904c8356ec7f1424da837d537debd (diff) |
get the attach args from the right place (honestly, this "worked" on i386)
sparc64? not so much.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/ucycom.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/ucycom.c b/sys/dev/usb/ucycom.c index 8b92ea96a25..63653af914f 100644 --- a/sys/dev/usb/ucycom.c +++ b/sys/dev/usb/ucycom.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ucycom.c,v 1.2 2006/08/16 21:22:56 jason Exp $ */ +/* $OpenBSD: ucycom.c,v 1.3 2006/08/18 23:08:45 jason Exp $ */ /* $NetBSD: ucycom.c,v 1.3 2005/08/05 07:27:47 skrll Exp $ */ /* @@ -179,8 +179,8 @@ USB_MATCH(ucycom) USB_ATTACH(ucycom) { USB_ATTACH_START(ucycom, sc, uaa); - usbd_device_handle dev = uaa->device; - struct uhidev_attach_arg *uha = aux; + struct uhidev_attach_arg *uha = (struct uhidev_attach_arg *)uaa; + usbd_device_handle dev = uha->parent->sc_udev; struct ucom_attach_args uca; int size, repid, err; void *desc; |