From: Jun Li Date: Wed, 22 Jan 2020 01:47:02 +0000 (+0000) Subject: usb: chipidea: add inline for ci_hdrc_host_driver_init if host is not defined X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9d69cd82fe02619ec68e5d770283576712188874;p=linux.git usb: chipidea: add inline for ci_hdrc_host_driver_init if host is not defined 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 Signed-off-by: Peter Chen Link: https://lore.kernel.org/r/20200122014639.22667-3-peter.chen@nxp.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/chipidea/host.h b/drivers/usb/chipidea/host.h index 70112cf0f195d..2625aa01a9115 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) { }