diff options
author | Lee Jones <lee.jones@linaro.org> | 2016-03-23 10:43:43 -0400 |
---|---|---|
committer | Jassi Brar <jaswinder.singh@linaro.org> | 2016-04-12 03:58:32 -0400 |
commit | 0c44d7896cbf9156b8bb10da4f665005622235ae (patch) | |
tree | 655ae8ea8c80bcc3430e306cae2e8e173b931490 /drivers/mailbox | |
parent | d1c2f87c9a8f79fa8816bbe7de98da38eae2be5e (diff) |
mailbox: Stop using ENOSYS for anything other than unimplemented syscalls
In accordance with e15f431fe2d5 ("errno.h: Improve ENOSYS's comment") and
91c9afaf97ee ("checkpatch.pl: new instances of ENOSYS are errors") we're
converting from the old meaning of: ENOSYS "Function not implemented" to
a more standard EINVAL.
Reported-by: Seraphin Bonnaffe <seraphin.bonnaffe@st.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Diffstat (limited to 'drivers/mailbox')
-rw-r--r-- | drivers/mailbox/mailbox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mailbox/mailbox.c b/drivers/mailbox/mailbox.c index 6a4811f85705..4a36632c236f 100644 --- a/drivers/mailbox/mailbox.c +++ b/drivers/mailbox/mailbox.c | |||
@@ -375,13 +375,13 @@ struct mbox_chan *mbox_request_channel_byname(struct mbox_client *cl, | |||
375 | 375 | ||
376 | if (!np) { | 376 | if (!np) { |
377 | dev_err(cl->dev, "%s() currently only supports DT\n", __func__); | 377 | dev_err(cl->dev, "%s() currently only supports DT\n", __func__); |
378 | return ERR_PTR(-ENOSYS); | 378 | return ERR_PTR(-EINVAL); |
379 | } | 379 | } |
380 | 380 | ||
381 | if (!of_get_property(np, "mbox-names", NULL)) { | 381 | if (!of_get_property(np, "mbox-names", NULL)) { |
382 | dev_err(cl->dev, | 382 | dev_err(cl->dev, |
383 | "%s() requires an \"mbox-names\" property\n", __func__); | 383 | "%s() requires an \"mbox-names\" property\n", __func__); |
384 | return ERR_PTR(-ENOSYS); | 384 | return ERR_PTR(-EINVAL); |
385 | } | 385 | } |
386 | 386 | ||
387 | of_property_for_each_string(np, "mbox-names", prop, mbox_name) { | 387 | of_property_for_each_string(np, "mbox-names", prop, mbox_name) { |