[RFC PATCH v2 2/3] arm: mach-k3: update board file to use thermal device

Udit Kumar u-kumar1 at ti.com
Fri Sep 8 19:29:16 CEST 2023


Update am65 and J721e board files to use thermal device
instead of MISC device

Signed-off-by: Udit Kumar <u-kumar1 at ti.com>
---
 arch/arm/mach-k3/am654_init.c | 2 +-
 arch/arm/mach-k3/j721e_init.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-k3/am654_init.c b/arch/arm/mach-k3/am654_init.c
index 0d3889cde2..7496164acf 100644
--- a/arch/arm/mach-k3/am654_init.c
+++ b/arch/arm/mach-k3/am654_init.c
@@ -248,7 +248,7 @@ void board_init_f(ulong dummy)
 	do_board_detect();
 
 #if defined(CONFIG_CPU_V7R) && defined(CONFIG_K3_AVS0)
-	ret = uclass_get_device_by_driver(UCLASS_MISC, DM_DRIVER_GET(k3_avs),
+	ret = uclass_get_device_by_driver(UCLASS_THERMAL, DM_DRIVER_GET(k3_avs),
 					  &dev);
 	if (ret)
 		printf("AVS init failed: %d\n", ret);
diff --git a/arch/arm/mach-k3/j721e_init.c b/arch/arm/mach-k3/j721e_init.c
index b6164575b7..db9bbd72c7 100644
--- a/arch/arm/mach-k3/j721e_init.c
+++ b/arch/arm/mach-k3/j721e_init.c
@@ -276,7 +276,7 @@ void board_init_f(ulong dummy)
 	do_board_detect();
 
 #if defined(CONFIG_CPU_V7R) && defined(CONFIG_K3_AVS0)
-	ret = uclass_get_device_by_driver(UCLASS_MISC, DM_DRIVER_GET(k3_avs),
+	ret = uclass_get_device_by_driver(UCLASS_THERMAL, DM_DRIVER_GET(k3_avs),
 					  &dev);
 	if (ret)
 		printf("AVS init failed: %d\n", ret);
-- 
2.34.1



More information about the U-Boot mailing list