mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
3f124d233e
- The role's init will be called at probe procedure. - The role's destroy will be called at fail patch at probe and driver's removal. - The role's start/stop will be called when specific role has started. Tested-by: Marek Vasut <marex@denx.de> Signed-off-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
23 lines
402 B
C
23 lines
402 B
C
#ifndef __DRIVERS_USB_CHIPIDEA_HOST_H
|
|
#define __DRIVERS_USB_CHIPIDEA_HOST_H
|
|
|
|
#ifdef CONFIG_USB_CHIPIDEA_HOST
|
|
|
|
int ci_hdrc_host_init(struct ci_hdrc *ci);
|
|
void ci_hdrc_host_destroy(struct ci_hdrc *ci);
|
|
|
|
#else
|
|
|
|
static inline int ci_hdrc_host_init(struct ci_hdrc *ci)
|
|
{
|
|
return -ENXIO;
|
|
}
|
|
|
|
static inline void ci_hdrc_host_destroy(struct ci_hdrc *ci)
|
|
{
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* __DRIVERS_USB_CHIPIDEA_HOST_H */
|