summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uhub.c
diff options
context:
space:
mode:
authorpirofti <pirofti@openbsd.org>2009-10-13 19:33:16 +0000
committerpirofti <pirofti@openbsd.org>2009-10-13 19:33:16 +0000
commite78728c7e57c4ce0e301c2a9c78eee6f8c0a8c00 (patch)
tree73f6f3f25e0bb936b93bd2c0bc42e990ecd3aea6 /sys/dev/usb/uhub.c
parentsync (diff)
downloadwireguard-openbsd-e78728c7e57c4ce0e301c2a9c78eee6f8c0a8c00.tar.xz
wireguard-openbsd-e78728c7e57c4ce0e301c2a9c78eee6f8c0a8c00.zip
Get rid of devact enum, substitute it with an int and coresponding defines.
This is needed for the addition of further suspend/resume actions. Okay deraadt@, marco@.
Diffstat (limited to 'sys/dev/usb/uhub.c')
-rw-r--r--sys/dev/usb/uhub.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/uhub.c b/sys/dev/usb/uhub.c
index 341284e330e..92ca543b15b 100644
--- a/sys/dev/usb/uhub.c
+++ b/sys/dev/usb/uhub.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhub.c,v 1.49 2008/06/26 05:42:18 ray Exp $ */
+/* $OpenBSD: uhub.c,v 1.50 2009/10/13 19:33:19 pirofti Exp $ */
/* $NetBSD: uhub.c,v 1.64 2003/02/08 03:32:51 ichiro Exp $ */
/* $FreeBSD: src/sys/dev/usb/uhub.c,v 1.18 1999/11/17 22:33:43 n_hibma Exp $ */
@@ -84,7 +84,7 @@ void uhub_intr(usbd_xfer_handle, usbd_private_handle,usbd_status);
int uhub_match(struct device *, void *, void *);
void uhub_attach(struct device *, struct device *, void *);
int uhub_detach(struct device *, int);
-int uhub_activate(struct device *, enum devact);
+int uhub_activate(struct device *, int);
struct cfdriver uhub_cd = {
NULL, "uhub", DV_DULL
@@ -497,7 +497,7 @@ uhub_explore(usbd_device_handle dev)
}
int
-uhub_activate(struct device *self, enum devact act)
+uhub_activate(struct device *self, int act)
{
struct uhub_softc *sc = (struct uhub_softc *)self;
struct usbd_hub *hub = sc->sc_hub->hub;