Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9c1d8839 authored by Hemant Kumar's avatar Hemant Kumar Committed by Ajay Agarwal
Browse files

usb: host: xhci: Remove helper API retuning dcba dma address



Since dcba dma address is not required by class driver
therefore remove the API definition.

Change-Id: I6851729f1ad4254bbfaf179755d9afa7870e8e01
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent 039bcf34
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -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,
};

+0 −2
Original line number Diff line number Diff line
@@ -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);
};