remarkable-linux/include/linux/rpmsg/qcom_smd.h
Bjorn Andersson 88e30752dd rpmsg: qcom: smd: Return positively when not enabled
Remoteproc treats the error codes returned from the stubbed SMD API as
errors, but the fact that SMD is not enabled should not affect
remoteproc's ability to start the remote processors.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2017-02-06 13:49:29 -08:00

32 lines
596 B
C

#ifndef _LINUX_RPMSG_QCOM_SMD_H
#define _LINUX_RPMSG_QCOM_SMD_H
#include <linux/device.h>
struct qcom_smd_edge;
#if IS_ENABLED(CONFIG_RPMSG_QCOM_SMD) || IS_ENABLED(CONFIG_QCOM_SMD)
struct qcom_smd_edge *qcom_smd_register_edge(struct device *parent,
struct device_node *node);
int qcom_smd_unregister_edge(struct qcom_smd_edge *edge);
#else
static inline struct qcom_smd_edge *
qcom_smd_register_edge(struct device *parent,
struct device_node *node)
{
return NULL;
}
static inline int qcom_smd_unregister_edge(struct qcom_smd_edge *edge)
{
return 0;
}
#endif
#endif