summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authordyoung <dyoung@NetBSD.org>2008-03-07 21:48:46 +0000
committerdyoung <dyoung@NetBSD.org>2008-03-07 21:48:46 +0000
commit347c1a26440513837c70998fda82a13ea37e3598 (patch)
treee325ddc725fd0959b0ac4d22b9eb43f12fd63292 /sys/dev/usb
parent3c5e53b4e205a4d4623da25edbf2df40bbbbb931 (diff)
Use device_t and accessors.
In ohci_{pci,cardbus}_attach, do not get the device_t by casting the softc to void *, but use `self' instead.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/ohci.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/usb/ohci.c b/sys/dev/usb/ohci.c
index 8d2bc7c385f..0fafd651601 100644
--- a/sys/dev/usb/ohci.c
+++ b/sys/dev/usb/ohci.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ohci.c,v 1.188 2008/03/07 21:36:51 dyoung Exp $ */
+/* $NetBSD: ohci.c,v 1.189 2008/03/07 21:48:46 dyoung Exp $ */
/* $FreeBSD: src/sys/dev/usb/ohci.c,v 1.22 1999/11/17 22:33:40 n_hibma Exp $ */
/*
@@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.188 2008/03/07 21:36:51 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.189 2008/03/07 21:48:46 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -361,9 +361,9 @@ Static const struct usbd_pipe_methods ohci_device_isoc_methods = {
#if defined(__NetBSD__) || defined(__OpenBSD__)
int
-ohci_activate(device_ptr_t self, enum devact act)
+ohci_activate(device_t self, enum devact act)
{
- struct ohci_softc *sc = (struct ohci_softc *)self;
+ struct ohci_softc *sc = device_private(self);
int rv = 0;
switch (act) {