summaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/host-export.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/cdns3/host-export.h')
-rw-r--r--drivers/usb/cdns3/host-export.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/usb/cdns3/host-export.h b/drivers/usb/cdns3/host-export.h
index 744a4d4c4fb8..087e1921e1f5 100644
--- a/drivers/usb/cdns3/host-export.h
+++ b/drivers/usb/cdns3/host-export.h
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
- * Cadence USBSS DRD Driver - Host Export APIs
+ * Cadence USBSS and USBSSP DRD Driver - Host Export APIs
*
* Copyright (C) 2017-2018 NXP
*
@@ -9,8 +9,9 @@
#ifndef __LINUX_CDNS3_HOST_EXPORT
#define __LINUX_CDNS3_HOST_EXPORT
+#if IS_ENABLED(CONFIG_USB_CDNS_HOST)
+
struct usb_hcd;
-#ifdef CONFIG_USB_CDNS3_HOST
int cdns_host_init(struct cdns *cdns);
int xhci_cdns3_suspend_quirk(struct usb_hcd *hcd);
@@ -28,6 +29,6 @@ static inline int xhci_cdns3_suspend_quirk(struct usb_hcd *hcd)
return 0;
}
-#endif /* CONFIG_USB_CDNS3_HOST */
+#endif /* USB_CDNS_HOST */
#endif /* __LINUX_CDNS3_HOST_EXPORT */