diff options
Diffstat (limited to 'drivers/usb/core/usb.c')
-rw-r--r-- | drivers/usb/core/usb.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c index 4eb98eb3804f..7ab9d29215f8 100644 --- a/drivers/usb/core/usb.c +++ b/drivers/usb/core/usb.c | |||
@@ -480,7 +480,7 @@ exit: | |||
480 | */ | 480 | */ |
481 | int usb_get_current_frame_number(struct usb_device *dev) | 481 | int usb_get_current_frame_number(struct usb_device *dev) |
482 | { | 482 | { |
483 | return dev->bus->op->get_frame_number (dev); | 483 | return usb_hcd_get_frame_number (dev); |
484 | } | 484 | } |
485 | 485 | ||
486 | /** | 486 | /** |
@@ -677,9 +677,9 @@ void *usb_buffer_alloc ( | |||
677 | dma_addr_t *dma | 677 | dma_addr_t *dma |
678 | ) | 678 | ) |
679 | { | 679 | { |
680 | if (!dev || !dev->bus || !dev->bus->op || !dev->bus->op->buffer_alloc) | 680 | if (!dev || !dev->bus) |
681 | return NULL; | 681 | return NULL; |
682 | return dev->bus->op->buffer_alloc (dev->bus, size, mem_flags, dma); | 682 | return hcd_buffer_alloc (dev->bus, size, mem_flags, dma); |
683 | } | 683 | } |
684 | 684 | ||
685 | /** | 685 | /** |
@@ -700,11 +700,11 @@ void usb_buffer_free ( | |||
700 | dma_addr_t dma | 700 | dma_addr_t dma |
701 | ) | 701 | ) |
702 | { | 702 | { |
703 | if (!dev || !dev->bus || !dev->bus->op || !dev->bus->op->buffer_free) | 703 | if (!dev || !dev->bus) |
704 | return; | 704 | return; |
705 | if (!addr) | 705 | if (!addr) |
706 | return; | 706 | return; |
707 | dev->bus->op->buffer_free (dev->bus, size, addr, dma); | 707 | hcd_buffer_free (dev->bus, size, addr, dma); |
708 | } | 708 | } |
709 | 709 | ||
710 | /** | 710 | /** |