Regression caused by a603a2b8d86e "gpio: of: Add special quirk to parse regulator flags"
With the latest next kernel I get a NPE caused by mentioned commit. The change doesn't consider that the flags parameter can be NULL, e.g. of_get_named_gpio() sets it to NULL.
All that of_gpio_flags_quirks() does is adjusting the flags, so the following simple change fixed the issue for me.
if (flags)
of_gpio_flags_quirks(np, flags);
Quoted 8 lines · Heiner Kallweit
With the latest next kernel I get a NPE caused by mentioned commit. The change doesn't consider that the flags parameter can be NULL, e.g.
of_get_named_gpio()sets it to NULL.
All thatof_gpio_flags_quirks()does is adjusting the flags, so the following simple change fixed the issue for me.if (flags)
of_gpio_flags_quirks(np, flags);
How sloppy of me.
I sent a patch.
Yours,
Linus Walleij