usbcore: trim down usb_bus structure
[deliverable/linux.git] / drivers / usb / core / buffer.c
index f4f4ef0f377ae001c2aee0d24bec14dc91a46442..840442a25b6183844979b3c2f5fc58d3607fb7ac 100644 (file)
@@ -104,7 +104,7 @@ void *hcd_buffer_alloc (
        dma_addr_t              *dma
 )
 {
-       struct usb_hcd          *hcd = bus->hcpriv;
+       struct usb_hcd          *hcd = bus_to_hcd(bus);
        int                     i;
 
        /* some USB hosts just use PIO */
@@ -127,7 +127,7 @@ void hcd_buffer_free (
        dma_addr_t              dma
 )
 {
-       struct usb_hcd          *hcd = bus->hcpriv;
+       struct usb_hcd          *hcd = bus_to_hcd(bus);
        int                     i;
 
        if (!addr)
This page took 0.025104 seconds and 5 git commands to generate.