diff options
author | Sean Anderson <seanga2@gmail.com> | 2020-09-15 17:44:48 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-09-30 15:52:54 +0300 |
commit | fe6e209a2785ae2d9e8a33c47dbf9c7940f369d7 (patch) | |
tree | f4d9a0e8bfc442e4299a4b1945a98fac28f81dc9 | |
parent | e1ce7901280b01c3d9532adf377cb9d3b2e04127 (diff) | |
download | u-boot-fe6e209a2785ae2d9e8a33c47dbf9c7940f369d7.tar.xz |
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>
-rw-r--r-- | drivers/mailbox/k3-sec-proxy.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/mailbox/k3-sec-proxy.c b/drivers/mailbox/k3-sec-proxy.c index 3f9afaed32..27ccc6eab0 100644 --- a/drivers/mailbox/k3-sec-proxy.c +++ b/drivers/mailbox/k3-sec-proxy.c @@ -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; } |