mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
mailbox: k3-sec-proxy: fix error handling for missing scfg in FDT
The wrong field was checked.
Fixes: f9aa41023b
("mailbox: Introduce K3 Secure Proxy Driver")
Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Reviewed-by: Nishanth Menon <nm@ti.com>
This commit is contained in:
parent
4a6105e783
commit
fb730a2c5a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue