From ee0f444043f62b1989c63b9419c2e908f6c4793f Mon Sep 17 00:00:00 2001 From: Marc Balmer Date: Sun, 10 Jun 2007 10:53:50 +0000 Subject: 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. --- sys/dev/usb/uaudio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/usb/uaudio.c') diff --git a/sys/dev/usb/uaudio.c b/sys/dev/usb/uaudio.c index b8a0f6297f9..48cd8c31f93 100644 --- a/sys/dev/usb/uaudio.c +++ b/sys/dev/usb/uaudio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uaudio.c,v 1.42 2007/06/06 19:25:49 mk Exp $ */ +/* $OpenBSD: uaudio.c,v 1.43 2007/06/10 10:53:48 mbalmer Exp $ */ /* $NetBSD: uaudio.c,v 1.90 2004/10/29 17:12:53 kent Exp $ */ /* @@ -452,7 +452,7 @@ uaudio_attach(struct device *parent, struct device *self, void *aux) printf(", %d mixer controls\n", sc->sc_nctls); usbd_add_drv_event(USB_EVENT_DRIVER_ATTACH, sc->sc_udev, - USBDEV(sc->sc_dev)); + &sc->sc_dev); DPRINTF(("uaudio_attach: doing audio_attach_mi\n")); sc->sc_audiodev = audio_attach_mi(&uaudio_hw_if, sc, &sc->sc_dev); @@ -497,7 +497,7 @@ uaudio_detach(device_ptr_t self, int flags) rv = config_detach(sc->sc_audiodev, flags); usbd_add_drv_event(USB_EVENT_DRIVER_DETACH, sc->sc_udev, - USBDEV(sc->sc_dev)); + &sc->sc_dev); return (rv); } -- cgit v1.2.3