usb: chipidea: add inline for ci_hdrc_host_driver_init if host is not defined
Subsystems (2)
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.
Signed-off-by Jun Li <[email protected]>
Signed-off-by Peter Chen <[email protected]>
--- drivers/usb/chipidea/host.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/chipidea/host.h +1 -1
@@ -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