diff options
author | Jun Li <[email protected]> | 2020-01-22 01:47:02 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2020-01-22 07:54:27 +0100 |
commit | 9d69cd82fe02619ec68e5d770283576712188874 (patch) | |
tree | 5d6be4c459de41b9b3ac27aab305392c3c90ed06 | |
parent | 27bf5be8fbe0b60b1f1aa13083198dac64fc4249 (diff) |
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 <[email protected]>
Signed-off-by: Peter Chen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r-- | drivers/usb/chipidea/host.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/chipidea/host.h b/drivers/usb/chipidea/host.h index 70112cf0f195..2625aa01a911 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) { } |