From patchwork Fri Apr 17 12:27:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 237916 List-Id: U-Boot discussion From: festevam at gmail.com (Fabio Estevam) Date: Fri, 17 Apr 2020 09:27:11 -0300 Subject: [PATCH v2 3/5] wandboard: Do not print error when PMIC is not present In-Reply-To: <20200417122713.30574-1-festevam@gmail.com> References: <20200417122713.30574-1-festevam@gmail.com> Message-ID: <20200417122713.30574-3-festevam@gmail.com> On wandboard variants prior to revD1, there is no PMIC populated, so do not print an error when the reading of the device ID register fails. Signed-off-by: Fabio Estevam Tested-by: Heiko Schocher --- Changes since v1: - None board/wandboard/wandboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/wandboard/wandboard.c b/board/wandboard/wandboard.c index 90957167b2..7fd60682a5 100644 --- a/board/wandboard/wandboard.c +++ b/board/wandboard/wandboard.c @@ -369,7 +369,7 @@ int power_init_board(void) reg = pmic_reg_read(dev, PFUZE100_DEVICEID); if (reg < 0) { - printf("pmic_reg_read() ret %d\n", reg); + debug("pmic_reg_read() ret %d\n", reg); return 0; } printf("PMIC: PFUZE100 ID=0x%02x\n", reg);