summaryrefslogtreecommitdiff
path: root/sys/dev/usb/udsbr.c
diff options
context:
space:
mode:
authorMarc Balmer <mbalmer@cvs.openbsd.org>2007-06-10 10:53:50 +0000
committerMarc Balmer <mbalmer@cvs.openbsd.org>2007-06-10 10:53:50 +0000
commitee0f444043f62b1989c63b9419c2e908f6c4793f (patch)
tree7d1c958fdcad64480efcbfb6f0ea69602208ab47 /sys/dev/usb/udsbr.c
parentba9346211f99b37c96aa619b9981b230c7b4a61d (diff)
Remove the definition and use of the USBDEV macro. It only created confusion
and the address of it's argument: USBDEV(sc->sc_dev) yields &sc->sc_dev. No binary changes. ok jsg.
Diffstat (limited to 'sys/dev/usb/udsbr.c')
-rw-r--r--sys/dev/usb/udsbr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/usb/udsbr.c b/sys/dev/usb/udsbr.c
index a0c46384e65..b2bcc0185fd 100644
--- a/sys/dev/usb/udsbr.c
+++ b/sys/dev/usb/udsbr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udsbr.c,v 1.13 2007/06/06 19:25:49 mk Exp $ */
+/* $OpenBSD: udsbr.c,v 1.14 2007/06/10 10:53:48 mbalmer Exp $ */
/* $NetBSD: udsbr.c,v 1.7 2002/07/11 21:14:27 augustss Exp $ */
/*
@@ -146,9 +146,9 @@ udsbr_attach(struct device *parent, struct device *self, void *aux)
DPRINTFN(10, ("udsbr_attach: %p\n", sc->sc_udev));
usbd_add_drv_event(USB_EVENT_DRIVER_ATTACH, sc->sc_udev,
- USBDEV(sc->sc_dev));
+ &sc->sc_dev);
- sc->sc_child = radio_attach_mi(&udsbr_hw_if, sc, USBDEV(sc->sc_dev));
+ sc->sc_child = radio_attach_mi(&udsbr_hw_if, sc, &sc->sc_dev);
}
int
@@ -161,7 +161,7 @@ udsbr_detach(struct device *self, int flags)
rv = config_detach(sc->sc_child, flags);
usbd_add_drv_event(USB_EVENT_DRIVER_DETACH, sc->sc_udev,
- USBDEV(sc->sc_dev));
+ &sc->sc_dev);
return (rv);
}