projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac22511
)
arm: k3: Use driver_name to get ti_sci handle
author
Lokesh Vutla
<lokeshvutla@ti.com>
Fri, 27 Sep 2019 08:02:15 +0000
(13:32 +0530)
committer
Tom Rini
<trini@konsulko.com>
Fri, 11 Oct 2019 17:32:20 +0000
(13:32 -0400)
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>
arch/arm/mach-k3/common.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-k3/common.c
b/arch/arm/mach-k3/common.c
index
97aa15d
..
f8274b3
100644
(file)
--- 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);