drm/virtio: Don't return error if virtio-gpu PCI dev is not found
[drm/drm-misc.git] / drivers / usb / cdns3 / host-export.h
blobcf92173ecf0083a7c1e6030f843af39e0f2a2b65
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Cadence USBSS and USBSSP DRD Driver - Host Export APIs
5 * Copyright (C) 2017-2018 NXP
7 * Authors: Peter Chen <peter.chen@nxp.com>
8 */
9 #ifndef __LINUX_CDNS3_HOST_EXPORT
10 #define __LINUX_CDNS3_HOST_EXPORT
12 #if IS_ENABLED(CONFIG_USB_CDNS_HOST)
14 int cdns_host_init(struct cdns *cdns);
16 #else
18 static inline int cdns_host_init(struct cdns *cdns)
20 return -ENXIO;
23 static inline void cdns_host_exit(struct cdns *cdns) { }
25 #endif /* USB_CDNS_HOST */
27 #endif /* __LINUX_CDNS3_HOST_EXPORT */