From 519c8c6b2e02e6d45755e29614124eae775e3dc6 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Sat, 3 Apr 2021 13:19:43 +0200 Subject: [PATCH] ANDROID: usb: host: xhci: provide function prototype for xhci_address_device In commit 731d2da95e41 ("ANDROID: usb: host: export xhci symbols for ring management") xhci_address_device() is exported, but there is no function prototype in xhci.h so that it can actually be called properly. To resolve this, add the correct function prototype. Based on a larger patch from Daehwan Jung, but split out into an individual one by Greg. Bug: 183761108 Fixes: 731d2da95e41 ("ANDROID: usb: host: export xhci symbols for ring management") Cc: Daehwan Jung Signed-off-by: Greg Kroah-Hartman Change-Id: I191f8d3201d4631c02a501c5f2699e9654094353 --- drivers/usb/host/xhci.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h index eb9cef392453..58f259e9eb9e 100644 --- a/drivers/usb/host/xhci.h +++ b/drivers/usb/host/xhci.h @@ -2107,6 +2107,7 @@ int xhci_drop_endpoint(struct usb_hcd *hcd, struct usb_device *udev, struct usb_host_endpoint *ep); int xhci_check_bandwidth(struct usb_hcd *hcd, struct usb_device *udev); void xhci_reset_bandwidth(struct usb_hcd *hcd, struct usb_device *udev); +int xhci_address_device(struct usb_hcd *hcd, struct usb_device *udev); int xhci_disable_slot(struct xhci_hcd *xhci, u32 slot_id); int xhci_ext_cap_init(struct xhci_hcd *xhci);