From: Bjorn Andersson Date: Mon, 30 Jan 2017 17:00:07 +0000 (-0800) Subject: rpmsg: qcom: smd: Return positively when not enabled X-Git-Tag: v4.11-rc1~97^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=88e30752dd47f0a6398cd014af82332f1b9873ea;p=platform%2Fkernel%2Flinux-exynos.git 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 --- diff --git a/include/linux/rpmsg/qcom_smd.h b/include/linux/rpmsg/qcom_smd.h index e674b2e3..8ec8b64 100644 --- a/include/linux/rpmsg/qcom_smd.h +++ b/include/linux/rpmsg/qcom_smd.h @@ -18,14 +18,12 @@ static inline struct qcom_smd_edge * qcom_smd_register_edge(struct device *parent, struct device_node *node) { - return ERR_PTR(-ENXIO); + return NULL; } static inline int qcom_smd_unregister_edge(struct qcom_smd_edge *edge) { - /* This shouldn't be possible */ - WARN_ON(1); - return -ENXIO; + return 0; } #endif