Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
[linux-2.6-block.git] / drivers / usb / cdns3 / host-export.h
CommitLineData
7733f6c3
PL
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Cadence USBSS DRD Driver - Host Export APIs
4 *
5 * Copyright (C) 2017-2018 NXP
6 *
7 * Authors: Peter Chen <peter.chen@nxp.com>
8 */
9#ifndef __LINUX_CDNS3_HOST_EXPORT
10#define __LINUX_CDNS3_HOST_EXPORT
11
12#ifdef CONFIG_USB_CDNS3_HOST
13
14int cdns3_host_init(struct cdns3 *cdns);
7733f6c3
PL
15
16#else
17
18static inline int cdns3_host_init(struct cdns3 *cdns)
19{
20 return -ENXIO;
21}
22
23static inline void cdns3_host_exit(struct cdns3 *cdns) { }
24
25#endif /* CONFIG_USB_CDNS3_HOST */
26
27#endif /* __LINUX_CDNS3_HOST_EXPORT */