From: Vignesh Raghavendra Date: Mon, 9 Dec 2019 04:55:34 +0000 (+0530) Subject: soc: ti: k3-navss-ringacc: Get SYSFW reference from DT phandle X-Git-Tag: v2020.10~405^2~49 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ec0aeacf0b6e919eee7adda34c7ee233a0c9d9a4;p=platform%2Fkernel%2Fu-boot.git soc: ti: k3-navss-ringacc: Get SYSFW reference from DT phandle 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 Reviewed-by: Grygorii Strashko Signed-off-by: Lokesh Vutla --- diff --git a/drivers/soc/ti/k3-navss-ringacc.c b/drivers/soc/ti/k3-navss-ringacc.c index f06ea29..17949d2 100644 --- a/drivers/soc/ti/k3-navss-ringacc.c +++ b/drivers/soc/ti/k3-navss-ringacc.c @@ -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;