sched/wake_q: Clarify queue reinit comment
[cris-mirror.git] / include / linux / rpmsg / qcom_smd.h
blobe674b2e3074beb38b195e9409168cd81880254a2
2 #ifndef _LINUX_RPMSG_QCOM_SMD_H
3 #define _LINUX_RPMSG_QCOM_SMD_H
5 #include <linux/device.h>
7 struct qcom_smd_edge;
9 #if IS_ENABLED(CONFIG_RPMSG_QCOM_SMD) || IS_ENABLED(CONFIG_QCOM_SMD)
11 struct qcom_smd_edge *qcom_smd_register_edge(struct device *parent,
12 struct device_node *node);
13 int qcom_smd_unregister_edge(struct qcom_smd_edge *edge);
15 #else
17 static inline struct qcom_smd_edge *
18 qcom_smd_register_edge(struct device *parent,
19 struct device_node *node)
21 return ERR_PTR(-ENXIO);
24 static inline int qcom_smd_unregister_edge(struct qcom_smd_edge *edge)
26 /* This shouldn't be possible */
27 WARN_ON(1);
28 return -ENXIO;
31 #endif
33 #endif