Skip to content

Commit 9d69cd8

Browse files
Junlisuzhougregkh
authored andcommitted
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]>
1 parent 27bf5be commit 9d69cd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/chipidea/host.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ static inline void ci_hdrc_host_destroy(struct ci_hdrc *ci)
2020

2121
}
2222

23-
static void ci_hdrc_host_driver_init(void)
23+
static inline void ci_hdrc_host_driver_init(void)
2424
{
2525

2626
}

0 commit comments

Comments
 (0)