summaryrefslogtreecommitdiff
path: root/sys/dev/usb/dwc2/dwc2.c
diff options
context:
space:
mode:
authorJonathan Matthew <jmatthew@cvs.openbsd.org>2015-06-08 08:47:39 +0000
committerJonathan Matthew <jmatthew@cvs.openbsd.org>2015-06-08 08:47:39 +0000
commit3284a3e7baa2987e9d7263f3a9bc0ee430591ab5 (patch)
treeebea2fde0c15dcdac2b04589f588d31cc39c775f /sys/dev/usb/dwc2/dwc2.c
parent58b97cf21d2f09894a1baf9600a6c8feece1fc27 (diff)
rearrange delayed_work to avoid the use of container_of while leaving it in
more or less the same shape. ok uebayasi@
Diffstat (limited to 'sys/dev/usb/dwc2/dwc2.c')
-rw-r--r--sys/dev/usb/dwc2/dwc2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/dwc2/dwc2.c b/sys/dev/usb/dwc2/dwc2.c
index c5d98b35a51..b90ff51de0d 100644
--- a/sys/dev/usb/dwc2/dwc2.c
+++ b/sys/dev/usb/dwc2/dwc2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dwc2.c,v 1.27 2015/06/08 00:58:23 jmatthew Exp $ */
+/* $OpenBSD: dwc2.c,v 1.28 2015/06/08 08:47:38 jmatthew Exp $ */
/* $NetBSD: dwc2.c,v 1.32 2014/09/02 23:26:20 macallan Exp $ */
/*-
@@ -1696,7 +1696,7 @@ dw_timeout(void *arg)
{
struct delayed_work *dw = arg;
- task_set(&dw->work, dw->dw_fn, arg);
+ task_set(&dw->work, dw->dw_fn, dw->dw_arg);
task_add(dw->dw_wq, &dw->work);
}