pinctrl: mvebu: silence WARN to dev_warn
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Wed, 5 Mar 2014 00:03:10 +0000 (01:03 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 12 Mar 2014 14:00:04 +0000 (15:00 +0100)
Pinctrl will WARN on missing DT resources, which is a little bit too
noisy. Use dev_warn with FW_BUG instead.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mvebu/pinctrl-dove.c

index 9e7ff651c018dff43704b8787e958f8d4dada90b..3b022178a566eee5d5568f9b68f3135f405cfdde 100644 (file)
@@ -832,7 +832,8 @@ static int dove_pinctrl_probe(struct platform_device *pdev)
        }
 
        /* Warn on any missing DT resource */
-       WARN(fb_res.start, FW_BUG "Missing pinctrl regs in DTB. Please update your firmware.\n");
+       if (fb_res.start)
+               dev_warn(&pdev->dev, FW_BUG "Missing pinctrl regs in DTB. Please update your firmware.\n");
 
        return mvebu_pinctrl_probe(pdev);
 }