summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/if_upl.c
diff options
context:
space:
mode:
authormbalmer <mbalmer@openbsd.org>2007-06-10 10:53:48 +0000
committermbalmer <mbalmer@openbsd.org>2007-06-10 10:53:48 +0000
commit1596fc1e8614a8e5fa585e7e19db4d9de4a96714 (patch)
tree9de436f81d8a01dc47713139858b55ecb612c793 /sys/dev/usb/if_upl.c
parentRemove definitions and usage of usb_callout and related macros. These macros (diff)
downloadwireguard-openbsd-1596fc1e8614a8e5fa585e7e19db4d9de4a96714.tar.xz
wireguard-openbsd-1596fc1e8614a8e5fa585e7e19db4d9de4a96714.zip
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/if_upl.c')
-rw-r--r--sys/dev/usb/if_upl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/if_upl.c b/sys/dev/usb/if_upl.c
index 8eb72e2bee7..494fd3456a1 100644
--- a/sys/dev/usb/if_upl.c
+++ b/sys/dev/usb/if_upl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_upl.c,v 1.33 2007/06/10 10:15:35 mbalmer Exp $ */
+/* $OpenBSD: if_upl.c,v 1.34 2007/06/10 10:53:48 mbalmer Exp $ */
/* $NetBSD: if_upl.c,v 1.19 2002/07/11 21:14:26 augustss Exp $ */
/*
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -311,7 +311,7 @@ upl_attach(struct device *parent, struct device *self, void *aux)
splx(s);
usbd_add_drv_event(USB_EVENT_DRIVER_ATTACH, sc->sc_udev,
- USBDEV(sc->sc_dev));
+ &sc->sc_dev);
}
int
@@ -348,7 +348,7 @@ upl_detach(struct device *self, int flags)
splx(s);
usbd_add_drv_event(USB_EVENT_DRIVER_DETACH, sc->sc_udev,
- USBDEV(sc->sc_dev));
+ &sc->sc_dev);
return (0);
}