Using uclass_probe_all forces probe on all devices:
Only probe for WD stop is really needed here.
Probing other devices has no impact.

Signed-off-by: Jerome Neanne <jnea...@baylibre.com>
---
 board/ti/j721e/evm.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/board/ti/j721e/evm.c b/board/ti/j721e/evm.c
index d4e672a7ac..a3304468d4 100644
--- a/board/ti/j721e/evm.c
+++ b/board/ti/j721e/evm.c
@@ -27,6 +27,8 @@
 
 #include "../common/board_detect.h"
 
+#include <power/tps65941.h>
+
 #define board_is_j721e_som()   (board_ti_k3_is("J721EX-PM1-SOM") || \
                                 board_ti_k3_is("J721EX-PM2-SOM"))
 
@@ -43,6 +45,12 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int board_init(void)
 {
+       int ret;
+
+       /* WD stop is applied unconditionally on all platforms*/
+       ret = uclass_probe_all(UCLASS_PMIC);
+       if (ret)
+               printf("Failed to probe! stop tps65941 wd\n");
        return 0;
 }
 
-- 
2.34.1

Reply via email to