From: Jerome Neanne <jnea...@baylibre.com>

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>
Signed-off-by: Apelete Seketeli <aseket...@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 2398bead78..c6391c1bae 100644
--- a/board/ti/j721e/evm.c
+++ b/board/ti/j721e/evm.c
@@ -25,6 +25,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"))
 
@@ -41,6 +43,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