Skip to content

Commit 88e3075

Browse files
committed
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>
1 parent 0abd6bd commit 88e3075

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

include/linux/rpmsg/qcom_smd.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,12 @@ static inline struct qcom_smd_edge *
1818
qcom_smd_register_edge(struct device *parent,
1919
struct device_node *node)
2020
{
21-
return ERR_PTR(-ENXIO);
21+
return NULL;
2222
}
2323

2424
static inline int qcom_smd_unregister_edge(struct qcom_smd_edge *edge)
2525
{
26-
/* This shouldn't be possible */
27-
WARN_ON(1);
28-
return -ENXIO;
26+
return 0;
2927
}
3028

3129
#endif

0 commit comments

Comments
 (0)