mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-30 19:11:37 +00:00
firmware: scmi: smccc transport: simplify probe sequence
Minor simplification in scmi_smccc_probe() exit sequence. Cc: Simon Glass <sjg@chromium.org> Cc: Patrice Chotard <patrice.chotard@foss.st.com> Cc: Patrick Delaunay <patrick.delaunay@foss.st.com> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
This commit is contained in:
parent
3de5aef451
commit
32190a959d
1 changed files with 2 additions and 4 deletions
|
@ -65,12 +65,10 @@ static int scmi_smccc_of_to_plat(struct udevice *dev)
|
||||||
chan->func_id = func_id;
|
chan->func_id = func_id;
|
||||||
|
|
||||||
ret = scmi_dt_get_smt_buffer(dev, &chan->smt);
|
ret = scmi_dt_get_smt_buffer(dev, &chan->smt);
|
||||||
if (ret) {
|
if (ret)
|
||||||
dev_err(dev, "Failed to get smt resources: %d\n", ret);
|
dev_err(dev, "Failed to get smt resources: %d\n", ret);
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct udevice_id scmi_smccc_ids[] = {
|
static const struct udevice_id scmi_smccc_ids[] = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue