]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
wandboard: Do not print error when PMIC is not present
authorFabio Estevam <festevam@gmail.com>
Fri, 17 Apr 2020 12:27:11 +0000 (09:27 -0300)
committerStefano Babic <sbabic@denx.de>
Sat, 18 Apr 2020 10:59:45 +0000 (12:59 +0200)
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 <festevam@gmail.com>
Tested-by: Heiko Schocher <hs@denx.de>
board/wandboard/wandboard.c

index 90957167b2ae6abc52e8b1dbcd4ea04117883592..7fd60682a5405e83c813dbfa80fb2293bbc092a6 100644 (file)
@@ -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);