提交 e69ffdb7 编写于 作者: L Lokesh Vutla 提交者: Tom Rini

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: NLokesh Vutla <lokeshvutla@ti.com>
上级 ac225118
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册