]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
soc: ti: k3-navss-ringacc: Get SYSFW reference from DT phandle
authorVignesh Raghavendra <vigneshr@ti.com>
Mon, 9 Dec 2019 04:55:34 +0000 (10:25 +0530)
committerLokesh Vutla <lokeshvutla@ti.com>
Mon, 20 Jan 2020 04:40:28 +0000 (10:10 +0530)
Instead of looking getting reference to SYSFW device using name which
is not guaranteed to be constant, use phandle supplied in the DT node to
get reference to SYSFW

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
drivers/soc/ti/k3-navss-ringacc.c

index f06ea29c986c982df5e3a12ba1afda829d8a4621..17949d2d0a67a4df916af0a435ec98f5ff9b8c43 100644 (file)
@@ -942,7 +942,8 @@ static int k3_nav_ringacc_probe_dt(struct k3_nav_ringacc *ringacc)
        ringacc->dma_ring_reset_quirk =
                        dev_read_bool(dev, "ti,dma-ring-reset-quirk");
 
-       ret = uclass_get_device_by_name(UCLASS_FIRMWARE, "dmsc", &tisci_dev);
+       ret = uclass_get_device_by_phandle(UCLASS_FIRMWARE, dev,
+                                          "ti,sci", &tisci_dev);
        if (ret) {
                pr_debug("TISCI RA RM get failed (%d)\n", ret);
                ringacc->tisci = NULL;