pinctrl: imx: Reduce printk message level for empty nodes
authorAlexander Stein <alexander.stein@ew.tq-group.com>
Thu, 24 Feb 2022 09:42:43 +0000 (10:42 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 15 Mar 2022 00:48:05 +0000 (01:48 +0100)
iomuxc_snvs from imx6ull supports 2 boot mode and 10 tamper pins.
Probably most users won't use them, causing this error message during boot:
  no groups defined in /soc/bus@2200000/iomuxc-snvs@2290000
This is actually not an error in this case, so reduce the level
accordingly.

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Link: https://lore.kernel.org/r/20220224094243.1376965-1-alexander.stein@ew.tq-group.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/freescale/pinctrl-imx.c

index fa3cc0b..3a7d2de 100644 (file)
@@ -661,7 +661,7 @@ static int imx_pinctrl_parse_functions(struct device_node *np,
        func->name = np->name;
        func->num_group_names = of_get_child_count(np);
        if (func->num_group_names == 0) {
-               dev_err(ipctl->dev, "no groups defined in %pOF\n", np);
+               dev_info(ipctl->dev, "no groups defined in %pOF\n", np);
                return -EINVAL;
        }