blob: 5707bf379bfb4b7ce98ff4a79d585619d1c64b48 [file] [log] [blame]
Alexander Shishkineb70e5a2012-05-11 17:25:54 +03001#ifndef __DRIVERS_USB_CHIPIDEA_HOST_H
2#define __DRIVERS_USB_CHIPIDEA_HOST_H
3
4#ifdef CONFIG_USB_CHIPIDEA_HOST
5
Alexander Shishkin8e229782013-06-24 14:46:36 +03006int ci_hdrc_host_init(struct ci_hdrc *ci);
Peter Chen3f124d22013-08-14 12:44:07 +03007void ci_hdrc_host_destroy(struct ci_hdrc *ci);
Alexander Shishkineb70e5a2012-05-11 17:25:54 +03008
9#else
10
Alexander Shishkin8e229782013-06-24 14:46:36 +030011static inline int ci_hdrc_host_init(struct ci_hdrc *ci)
Alexander Shishkineb70e5a2012-05-11 17:25:54 +030012{
13 return -ENXIO;
14}
15
Peter Chen3f124d22013-08-14 12:44:07 +030016static inline void ci_hdrc_host_destroy(struct ci_hdrc *ci)
17{
18
19}
20
Alexander Shishkineb70e5a2012-05-11 17:25:54 +030021#endif
22
23#endif /* __DRIVERS_USB_CHIPIDEA_HOST_H */