arm: k3: Use driver_name to get ti_sci handle
Use the driver name to get ti_sci handle rather than relying on just the FIRMWARE uclass. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
This commit is contained in:
parent
ac22511818
commit
e69ffdb763
@ -22,7 +22,8 @@ struct ti_sci_handle *get_ti_sci_handle(void)
|
||||
struct udevice *dev;
|
||||
int ret;
|
||||
|
||||
ret = uclass_get_device(UCLASS_FIRMWARE, 0, &dev);
|
||||
ret = uclass_get_device_by_driver(UCLASS_FIRMWARE,
|
||||
DM_GET_DRIVER(ti_sci), &dev);
|
||||
if (ret)
|
||||
panic("Failed to get SYSFW (%d)\n", ret);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user