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)
commit9d69cd82fe02619ec68e5d770283576712188874
tree5d6be4c459de41b9b3ac27aab305392c3c90ed06
parent27bf5be8fbe0b60b1f1aa13083198dac64fc4249
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