usb: chipidea: add inline for ci_hdrc_host_driver_init if host is not defined
authorJun Li <jun.li@nxp.com>
Wed, 22 Jan 2020 01:47:02 +0000 (01:47 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Jan 2020 06:54:27 +0000 (07:54 +0100)
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>
Link: https://lore.kernel.org/r/20200122014639.22667-3-peter.chen@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/host.h

index 70112cf0f195d623dac93e2b74f7125a1e853557..2625aa01a9115601f2fcafb38f7ce31d367c3375 100644 (file)
@@ -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)
 {
 
 }