diff options
author | Matthias Schiffer | 2023-09-26 14:42:54 +0200 |
---|---|---|
committer | Tom Rini | 2023-10-09 15:24:31 -0400 |
commit | fb730a2c5ac906730ca9e91f0178a77bdef1bb3a (patch) | |
tree | 3d27d52df4c0beb480cde76c3f03596116df6e76 | |
parent | 4a6105e7830e9e945a6dc556a43ffaf26f0156e5 (diff) |
mailbox: k3-sec-proxy: fix error handling for missing scfg in FDT
The wrong field was checked.
Fixes: f9aa41023bd9 ("mailbox: Introduce K3 Secure Proxy Driver")
Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Reviewed-by: Nishanth Menon <nm@ti.com>
-rw-r--r-- | drivers/mailbox/k3-sec-proxy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mailbox/k3-sec-proxy.c b/drivers/mailbox/k3-sec-proxy.c index 815808498f2..27072610462 100644 --- a/drivers/mailbox/k3-sec-proxy.c +++ b/drivers/mailbox/k3-sec-proxy.c @@ -326,7 +326,7 @@ static int k3_sec_proxy_of_to_priv(struct udevice *dev, } spm->scfg = devfdt_get_addr_name(dev, "scfg"); - if (spm->rt == FDT_ADDR_T_NONE) { + if (spm->scfg == FDT_ADDR_T_NONE) { dev_err(dev, "No reg property for Secure Cfg base\n"); return -EINVAL; } |