]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit675502c3f835780a551af1d2dbe486685b2fae41
tree5d6be4c459de41b9b3ac27aab305392c3c90ed06
parent8dd16bf373a0c408117ba36826274064b8fc8289
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 <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