summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2022-02-12 03:24:34 +0000
committerriastradh <riastradh@NetBSD.org>2022-02-12 03:24:34 +0000
commite8b15cb7d5710c8b2b2da941d8a038f6fd5c4d45 (patch)
tree01ec573f838c0bce5b4bc8790bb469529d164de3 /sys/dev/usb
parent50cc4c85087facfd6c5ac7978a7156437eff8880 (diff)
sys: Fix various abuse of struct device internals.
Will help to make struct device opaque later.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/vhci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/vhci.c b/sys/dev/usb/vhci.c
index f5c46b9a774..fee8487f14b 100644
--- a/sys/dev/usb/vhci.c
+++ b/sys/dev/usb/vhci.c
@@ -1,4 +1,4 @@
-/* $NetBSD: vhci.c,v 1.22 2021/08/07 16:19:17 thorpej Exp $ */
+/* $NetBSD: vhci.c,v 1.23 2022/02/12 03:24:36 riastradh Exp $ */
/*
* Copyright (c) 2019-2020 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vhci.c,v 1.22 2021/08/07 16:19:17 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vhci.c,v 1.23 2022/02/12 03:24:36 riastradh Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -1299,7 +1299,7 @@ vhci_attach(device_t parent, device_t self, void *aux)
sc->sc_dev = self;
sc->sc_bus.ub_revision = USBREV_2_0;
sc->sc_bus.ub_hctype = USBHCTYPE_VHCI;
- sc->sc_bus.ub_busnum = self->dv_unit;
+ sc->sc_bus.ub_busnum = device_unit(self);
sc->sc_bus.ub_usedma = false;
sc->sc_bus.ub_methods = &vhci_bus_methods;
sc->sc_bus.ub_pipesize = sizeof(vhci_pipe_t);