]> 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)
commita45b44c5702a75bc2d42bd0fa931f14611506eb4
tree5d6be4c459de41b9b3ac27aab305392c3c90ed06
parent45d4df12827715a4a0b724a65a1b611d6f6884a4
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