From: Matthias Schiffer Date: Tue, 26 Sep 2023 12:42:54 +0000 (+0200) Subject: mailbox: k3-sec-proxy: fix error handling for missing scfg in FDT X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=fb730a2c5ac906730ca9e91f0178a77bdef1bb3a;p=u-boot.git 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 Reviewed-by: Nishanth Menon --- diff --git a/drivers/mailbox/k3-sec-proxy.c b/drivers/mailbox/k3-sec-proxy.c index 815808498f..2707261046 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; }