mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 07:31:15 +00:00
mailbox: k3: Fix not calling dev_err with a device
dev needs to be gotten from mbox_chan Signed-off-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Patrick Delaunay <patrick.delaunay@st.com>
This commit is contained in:
parent
e1ce790128
commit
fe6e209a27
1 changed files with 4 additions and 2 deletions
|
@ -212,14 +212,16 @@ static int k3_sec_proxy_send(struct mbox_chan *chan, const void *data)
|
|||
|
||||
ret = k3_sec_proxy_verify_thread(spt, THREAD_IS_TX);
|
||||
if (ret) {
|
||||
dev_err(dev, "%s: Thread%d verification failed. ret = %d\n",
|
||||
dev_err(chan->dev,
|
||||
"%s: Thread%d verification failed. ret = %d\n",
|
||||
__func__, spt->id, ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* Check the message size. */
|
||||
if (msg->len > spm->desc->max_msg_size) {
|
||||
printf("%s: Thread %ld message length %zu > max msg size %d\n",
|
||||
dev_err(chan->dev,
|
||||
"%s: Thread %ld message length %zu > max msg size %d\n",
|
||||
__func__, chan->id, msg->len, spm->desc->max_msg_size);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue