]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mailbox: k3-sec-proxy: fix error handling for missing scfg in FDT
authorMatthias Schiffer <matthias.schiffer@ew.tq-group.com>
Tue, 26 Sep 2023 12:42:54 +0000 (14:42 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 9 Oct 2023 19:24:31 +0000 (15:24 -0400)
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>
drivers/mailbox/k3-sec-proxy.c

index 815808498f2ef1c35191f4163abcd8d7ed8dc002..2707261046273acf6697263f30e1de8b196a5cc6 100644 (file)
@@ -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;
        }