projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27bf5be
)
usb: chipidea: add inline for ci_hdrc_host_driver_init if host is not defined
author
Jun Li
<jun.li@nxp.com>
Wed, 22 Jan 2020 01:47:02 +0000
(
01:47
+0000)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 22 Jan 2020 06:54:27 +0000
(07:54 +0100)
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
patch
|
blob
|
history
diff --git
a/drivers/usb/chipidea/host.h
b/drivers/usb/chipidea/host.h
index 70112cf0f195d623dac93e2b74f7125a1e853557..2625aa01a9115601f2fcafb38f7ce31d367c3375 100644
(file)
--- 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)
{
}