[PATCH v3 29/30] x86: pinctrl: Silence the warning when a pin is not found

Simon Glass sjg at chromium.org
Wed Nov 4 17:57:42 CET 2020


This does not necessarily indicate a problem, since some pins are
optional. Let the caller show an error if necessary.
Reviewed-by: Bin Meng <bmeng.cn at gmail.com>

Signed-off-by: Simon Glass <sjg at chromium.org>
---

(no changes since v1)

 drivers/pinctrl/intel/pinctrl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pinctrl/intel/pinctrl.c b/drivers/pinctrl/intel/pinctrl.c
index ba21c9dcc2e..e3d24646344 100644
--- a/drivers/pinctrl/intel/pinctrl.c
+++ b/drivers/pinctrl/intel/pinctrl.c
@@ -154,7 +154,7 @@ static int pinctrl_get_device(uint pad, struct udevice **devp)
 			return 0;
 		}
 	}
-	printf("pad %d not found\n", pad);
+	log_debug("pad %d not found\n", pad);
 
 	return -ENOTBLK;
 }
-- 
2.29.1.341.ge80a0c044ae-goog



More information about the U-Boot mailing list