aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-k3/common.c
diff options
context:
space:
mode:
authorLokesh Vutla <lokeshvutla@ti.com>2019-09-27 13:32:15 +0530
committerTom Rini <trini@konsulko.com>2019-10-11 13:32:20 -0400
commite69ffdb763dec192102f2705cac14f38c56d9b62 (patch)
tree56a1a73c83da1d052ea042a284965c3a6208c142 /arch/arm/mach-k3/common.c
parentac2251181884dba6aefec3b82cd9ba19ee3d3b03 (diff)
downloadu-boot-e69ffdb763dec192102f2705cac14f38c56d9b62.zip
u-boot-e69ffdb763dec192102f2705cac14f38c56d9b62.tar.gz
u-boot-e69ffdb763dec192102f2705cac14f38c56d9b62.tar.bz2
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/common.c')
-rw-r--r--arch/arm/mach-k3/common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-k3/common.c b/arch/arm/mach-k3/common.c
index 97aa15d..f8274b3 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);