[PATCH 01/14] pinctrl: i.MX iomux-v3: Print more context in error message

Sascha Hauer s.hauer at pengutronix.de
Wed May 7 01:04:31 PDT 2014


When a devicenode has invalid pinctrl settings then printing the
offending node helps debugging it.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 drivers/pinctrl/imx-iomux-v3.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/pinctrl/imx-iomux-v3.c b/drivers/pinctrl/imx-iomux-v3.c
index 1319690..5dfcde6 100644
--- a/drivers/pinctrl/imx-iomux-v3.c
+++ b/drivers/pinctrl/imx-iomux-v3.c
@@ -117,7 +117,8 @@ static int imx_iomux_v3_set_state(struct pinctrl_device *pdev, struct device_nod
 
 
 	if (!size || size % FSL_PIN_SIZE) {
-		dev_err(iomux->pinctrl.dev, "Invalid fsl,pins property\n");
+		dev_err(iomux->pinctrl.dev, "Invalid fsl,pins property in %s\n",
+				np->full_name);
 		return -EINVAL;
 	}
 
-- 
2.0.0.rc0




More information about the barebox mailing list