Skip to contentSkip to conversation

Regression caused by a603a2b8d86e "gpio: of: Add special quirk to parse regulator flags"

DISCUSSION Heiner Kallweit 2 participants 2 messages Jan 16, 2018 GPIO

lore
Share & tools
lore
#0 lore raw

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);
#1 lore raw
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 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);

How sloppy of me.

I sent a patch.

Yours,
Linus Walleij