From 06b301069fde6f28b458bb5b95e7863a5387710c Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Tue, 20 Sep 2022 16:57:30 +0200 Subject: [PATCH] ANDROID: remove unused xhci_get_endpoint_address export In commit 731d2da95e41 ("ANDROID: usb: host: export xhci symbols for ring management"), many xhci symbols were exported, but xhci_get_endpoint_address was never actually used by any external modules, so remove the export as it is unneeded. Bug: 183761108 Bug: 203756332 Cc: Daehwan Jung Fixes: 731d2da95e41 ("ANDROID: usb: host: export xhci symbols for ring management") Signed-off-by: Greg Kroah-Hartman Change-Id: I08aab7192297c832f5a9dd559a016e6ff1140b86 --- drivers/usb/host/xhci.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 07017eb4727a..f17d9dce4593 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -1334,7 +1334,6 @@ unsigned int xhci_get_endpoint_address(unsigned int ep_index) unsigned int direction = ep_index % 2 ? USB_DIR_OUT : USB_DIR_IN; return direction | number; } -EXPORT_SYMBOL_GPL(xhci_get_endpoint_address); /* Find the flag for this endpoint (for use in the control context). Use the * endpoint index to create a bitmask. The slot context is bit 0, endpoint 0 is