|
@@ -375,13 +375,13 @@ struct mbox_chan *mbox_request_channel_byname(struct mbox_client *cl,
|
|
|
|
|
|
if (!np) {
|
|
if (!np) {
|
|
dev_err(cl->dev, "%s() currently only supports DT\n", __func__);
|
|
dev_err(cl->dev, "%s() currently only supports DT\n", __func__);
|
|
- return ERR_PTR(-ENOSYS);
|
|
|
|
|
|
+ return ERR_PTR(-EINVAL);
|
|
}
|
|
}
|
|
|
|
|
|
if (!of_get_property(np, "mbox-names", NULL)) {
|
|
if (!of_get_property(np, "mbox-names", NULL)) {
|
|
dev_err(cl->dev,
|
|
dev_err(cl->dev,
|
|
"%s() requires an \"mbox-names\" property\n", __func__);
|
|
"%s() requires an \"mbox-names\" property\n", __func__);
|
|
- return ERR_PTR(-ENOSYS);
|
|
|
|
|
|
+ return ERR_PTR(-EINVAL);
|
|
}
|
|
}
|
|
|
|
|
|
of_property_for_each_string(np, "mbox-names", prop, mbox_name) {
|
|
of_property_for_each_string(np, "mbox-names", prop, mbox_name) {
|