Skip to contentSkip to conversation

usb: chipidea: add inline for ci_hdrc_host_driver_init if host is not defined

PATCH New Peter Chen 1 participant 1 message Jan 15, 2020

Subsystems (2)
lore
Share & tools
lore

Peter Chen

author
#0 lore raw

PATCH 1/1 usb: chipidea: add inline for ci_hdrc_host_driver_init if host is not defined

From: Jun Li <[email protected]>

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

---
 drivers/usb/chipidea/host.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/chipidea/host.h +1 -1
index 70112cf0f195..2625aa01a911 100644
@@ -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)
 {
 
 }
Signature · 1 line
2.17.1