diff options
author | Lokesh Vutla | 2019-09-27 13:32:15 +0530 |
---|---|---|
committer | Tom Rini | 2019-10-11 13:32:20 -0400 |
commit | e69ffdb763dec192102f2705cac14f38c56d9b62 (patch) | |
tree | 56a1a73c83da1d052ea042a284965c3a6208c142 /arch/arm/mach-k3 | |
parent | ac2251181884dba6aefec3b82cd9ba19ee3d3b03 (diff) |
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>
Diffstat (limited to 'arch/arm/mach-k3')
-rw-r--r-- | arch/arm/mach-k3/common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-k3/common.c b/arch/arm/mach-k3/common.c index 97aa15d6a68..f8274b39d6b 100644 --- a/arch/arm/mach-k3/common.c +++ b/arch/arm/mach-k3/common.c @@ -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); |