mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
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 <vigneshr@ti.com> Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
This commit is contained in:
parent
9d32a94bce
commit
ec0aeacf0b
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue