diff options
| author | Etienne Carriere <[email protected]> | 2021-11-08 08:56:08 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2021-11-23 13:53:03 -0500 |
| commit | 7b4993907a8c6839b14a769b98d56dddbf7cbe88 (patch) | |
| tree | 6b4371b8f8f491eee720822c5bf2bf1e1e12f92d /drivers | |
| parent | 5ddbbd19576c33f584da056c78778268dcb6ad67 (diff) | |
firmware: scmi: mailbox transport: fix probe failure implementation
Correct scmi mailbox probe function that can't free the scmi channel
instance since its auto-allocated by the device model framework.
Cc: Simon Glass <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Signed-off-by: Etienne Carriere <[email protected]>
Reviewed-by: Patrick Delaunay <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/firmware/scmi/mailbox_agent.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/firmware/scmi/mailbox_agent.c b/drivers/firmware/scmi/mailbox_agent.c index ea35e7e09ed..eb841d692b3 100644 --- a/drivers/firmware/scmi/mailbox_agent.c +++ b/drivers/firmware/scmi/mailbox_agent.c @@ -72,17 +72,13 @@ int scmi_mbox_probe(struct udevice *dev) ret = mbox_get_by_index(dev, 0, &chan->mbox); if (ret) { dev_err(dev, "Failed to find mailbox: %d\n", ret); - goto out; + return ret; } ret = scmi_dt_get_smt_buffer(dev, &chan->smt); if (ret) dev_err(dev, "Failed to get shm resources: %d\n", ret); -out: - if (ret) - devm_kfree(dev, chan); - return ret; } |
