summaryrefslogtreecommitdiff
path: root/sys/dev/usb/uhci.c
diff options
context:
space:
mode:
authorJohn-Mark Gurney <jmg@FreeBSD.org>2003-07-15 22:42:37 +0000
committerJohn-Mark Gurney <jmg@FreeBSD.org>2003-07-15 22:42:37 +0000
commit45dd937507e52d43331da591a1b2878f59372890 (patch)
tree432b2ece265fb55d907ec0301448b451531417cb /sys/dev/usb/uhci.c
parent9f4b5407ca6e4ab8a05ebdd46a11a93632378c9a (diff)
Notes
Diffstat (limited to 'sys/dev/usb/uhci.c')
-rw-r--r--sys/dev/usb/uhci.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c
index cacd810ee531..af4fd4a76deb 100644
--- a/sys/dev/usb/uhci.c
+++ b/sys/dev/usb/uhci.c
@@ -610,14 +610,13 @@ uhci_detach(struct uhci_softc *sc, int flags)
usbd_status
uhci_allocm(struct usbd_bus *bus, usb_dma_t *dma, u_int32_t size)
{
- return (usb_allocmem(&((struct uhci_softc *)bus)->sc_bus, size, 0,
- dma));
+ return (usb_allocmem(bus, size, 0, dma));
}
void
uhci_freem(struct usbd_bus *bus, usb_dma_t *dma)
{
- usb_freemem(&((struct uhci_softc *)bus)->sc_bus, dma);
+ usb_freemem(bus, dma);
}
usbd_xfer_handle