[PATCH 4/5] pinctrl: imx: do not fail when parsing a function fails

Linus Walleij linus.walleij at linaro.org
Thu Aug 15 16:10:15 EDT 2013


On Thu, Aug 15, 2013 at 7:04 AM, Sascha Hauer <s.hauer at pengutronix.de> wrote:
> On Wed, Aug 14, 2013 at 10:37:32PM +0200, Linus Walleij wrote:
>> On Fri, Aug 9, 2013 at 2:20 PM, Sascha Hauer <s.hauer at pengutronix.de> wrote:
>>
>> > When parsing a function fails this is no reason to make the whole
>> > driver fail. Just continue with the next function.
>> >
>> > Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
>> (...)
>> > -       for_each_child_of_node(np, child) {
>> > -               ret = imx_pinctrl_parse_functions(child, info, i++);
>> > -               if (ret) {
>> > -                       dev_err(&pdev->dev, "failed to parse function\n");
>> > -                       return ret;
>> > -               }
>> > -       }
>> > +       for_each_child_of_node(np, child)
>> > +               imx_pinctrl_parse_functions(child, info, i++);
>>
>> But is there a reason to stop printing an error message
>> about it?
>
> imx_pinctrl_parse_functions won't fail without printing an error message
> itself, so this message is rather redundant.

OK applied it then.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list