diff mbox series

[2/2] usb: chipidea: add inline for ci_hdrc_host_driver_init if host is not defined

Message ID 20200122014639.22667-3-peter.chen@nxp.com (mailing list archive)
State Mainlined
Commit 9d69cd82fe02619ec68e5d770283576712188874
Headers show
Series usb: chipidea changes for v5.6-rc1 | expand

Commit Message

Peter Chen Jan. 22, 2020, 1:47 a.m. UTC
From: Jun Li <jun.li@nxp.com>

Otherwise, there is a build warning if this header file is included
by non host source file, eg, otg.c.

Signed-off-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
---
 drivers/usb/chipidea/host.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/usb/chipidea/host.h b/drivers/usb/chipidea/host.h
index 70112cf0f195..2625aa01a911 100644
--- a/drivers/usb/chipidea/host.h
+++ b/drivers/usb/chipidea/host.h
@@ -20,7 +20,7 @@  static inline void ci_hdrc_host_destroy(struct ci_hdrc *ci)
 
 }
 
-static void ci_hdrc_host_driver_init(void)
+static inline void ci_hdrc_host_driver_init(void)
 {
 
 }