| From 3c08379f5b4a56f27173a64e2179d5557ae5462f Mon Sep 17 00:00:00 2001 |
| From: Lu Baolu <baolu.lu@linux.intel.com> |
| Date: Fri, 7 Apr 2017 17:57:03 +0300 |
| Subject: [PATCH 189/286] usb: xhci: remove xhci_dbg_ep_rings() |
| |
| xhci_dbg_ep_rings() isn't used in xhci driver anymore. Remove |
| it to reduce the module binary size. |
| |
| Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> |
| Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> |
| Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| (cherry picked from commit b7d09fe863561014085503986cb202f4111be347) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| --- |
| drivers/usb/host/xhci-dbg.c | 24 ------------------------ |
| drivers/usb/host/xhci.h | 3 --- |
| 2 files changed, 27 deletions(-) |
| |
| --- a/drivers/usb/host/xhci-dbg.c |
| +++ b/drivers/usb/host/xhci-dbg.c |
| @@ -381,30 +381,6 @@ void xhci_debug_ring(struct xhci_hcd *xh |
| xhci_debug_segment(xhci, seg); |
| } |
| |
| -void xhci_dbg_ep_rings(struct xhci_hcd *xhci, |
| - unsigned int slot_id, unsigned int ep_index, |
| - struct xhci_virt_ep *ep) |
| -{ |
| - int i; |
| - struct xhci_ring *ring; |
| - |
| - if (ep->ep_state & EP_HAS_STREAMS) { |
| - for (i = 1; i < ep->stream_info->num_streams; i++) { |
| - ring = ep->stream_info->stream_rings[i]; |
| - xhci_dbg(xhci, "Dev %d endpoint %d stream ID %d:\n", |
| - slot_id, ep_index, i); |
| - xhci_debug_segment(xhci, ring->deq_seg); |
| - } |
| - } else { |
| - ring = ep->ring; |
| - if (!ring) |
| - return; |
| - xhci_dbg(xhci, "Dev %d endpoint ring %d:\n", |
| - slot_id, ep_index); |
| - xhci_debug_segment(xhci, ring->deq_seg); |
| - } |
| -} |
| - |
| void xhci_dbg_erst(struct xhci_hcd *xhci, struct xhci_erst *erst) |
| { |
| u64 addr = erst->erst_dma_addr; |
| --- a/drivers/usb/host/xhci.h |
| +++ b/drivers/usb/host/xhci.h |
| @@ -1940,9 +1940,6 @@ void xhci_dbg_ring_ptrs(struct xhci_hcd |
| void xhci_dbg_ctx(struct xhci_hcd *xhci, struct xhci_container_ctx *ctx, unsigned int last_ep); |
| char *xhci_get_slot_state(struct xhci_hcd *xhci, |
| struct xhci_container_ctx *ctx); |
| -void xhci_dbg_ep_rings(struct xhci_hcd *xhci, |
| - unsigned int slot_id, unsigned int ep_index, |
| - struct xhci_virt_ep *ep); |
| void xhci_dbg_trace(struct xhci_hcd *xhci, void (*trace)(struct va_format *), |
| const char *fmt, ...); |
| |