diff mbox series

wandboard: Do not print error message when PMIC is absent

Message ID 20200109010505.3498-1-festevam@gmail.com
State Accepted
Commit 274a5526b99a86482296b647cccbd2cfdff01cf6
Headers show
Series wandboard: Do not print error message when PMIC is absent | expand

Commit Message

Fabio Estevam Jan. 9, 2020, 1:05 a.m. UTC
Only the wandboard revD1 boards have PMIC, so when running on a wandboard
of different revision the following error is always shown on every boot:

pmic_get() ret -19

Instead of printing this error message, move it to debug level instead. 

Signed-off-by: Fabio Estevam <festevam at gmail.com>
---
 board/wandboard/wandboard.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stefano Babic Jan. 15, 2020, 12:46 p.m. UTC | #1
> Only the wandboard revD1 boards have PMIC, so when running on a wandboard
> of different revision the following error is always shown on every boot:
> pmic_get() ret -19
> Instead of printing this error message, move it to debug level instead. 
> Signed-off-by: Fabio Estevam <festevam at gmail.com>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/board/wandboard/wandboard.c b/board/wandboard/wandboard.c
index f4534dd3dc..5725c5816c 100644
--- a/board/wandboard/wandboard.c
+++ b/board/wandboard/wandboard.c
@@ -363,7 +363,7 @@  int power_init_board(void)
 
 	ret = pmic_get("pfuze100 at 8", &dev);
 	if (ret < 0) {
-		printf("pmic_get() ret %d\n", ret);
+		debug("pmic_get() ret %d\n", ret);
 		return 0;
 	}