diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index be9258c6efda..5e133de65990 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -4995,17 +4995,6 @@ dma_addr_t xhci_get_sec_event_ring_dma_addr(struct usb_hcd *hcd, return 0; } -dma_addr_t xhci_get_dcba_dma_addr(struct usb_hcd *hcd, - struct usb_device *udev) -{ - struct xhci_hcd *xhci = hcd_to_xhci(hcd); - - if (!(xhci->xhc_state & XHCI_STATE_HALTED) && xhci->dcbaa) - return xhci->dcbaa->dev_context_ptrs[udev->slot_id]; - - return 0; -} - dma_addr_t xhci_get_xfer_ring_dma_addr(struct usb_hcd *hcd, struct usb_device *udev, struct usb_host_endpoint *ep) { @@ -5101,7 +5090,6 @@ static const struct hc_driver xhci_hc_driver = { .sec_event_ring_cleanup = xhci_sec_event_ring_cleanup, .get_sec_event_ring_dma_addr = xhci_get_sec_event_ring_dma_addr, .get_xfer_ring_dma_addr = xhci_get_xfer_ring_dma_addr, - .get_dcba_dma_addr = xhci_get_dcba_dma_addr, .get_core_id = xhci_get_core_id, }; diff --git a/include/linux/usb/hcd.h b/include/linux/usb/hcd.h index 925401c30abe..8cbf59e6406b 100644 --- a/include/linux/usb/hcd.h +++ b/include/linux/usb/hcd.h @@ -403,8 +403,6 @@ struct hc_driver { unsigned intr_num); dma_addr_t (*get_xfer_ring_dma_addr)(struct usb_hcd *hcd, struct usb_device *udev, struct usb_host_endpoint *ep); - dma_addr_t (*get_dcba_dma_addr)(struct usb_hcd *hcd, - struct usb_device *udev); int (*get_core_id)(struct usb_hcd *hcd); };