From: Lokesh Vutla Date: Fri, 27 Sep 2019 08:02:15 +0000 (+0530) Subject: arm: k3: Use driver_name to get ti_sci handle X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=e69ffdb763dec192102f2705cac14f38c56d9b62;p=u-boot.git 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 --- diff --git a/arch/arm/mach-k3/common.c b/arch/arm/mach-k3/common.c index 97aa15d6a6..f8274b39d6 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);