On Wed, Dec 13, 2017 at 5:20 PM, Mylene JOSSERAND <mylene.josserand@xxxxxxxxxxxxxxxxxx> wrote: > Hello Quentin, > > Le Wed, 13 Dec 2017 09:55:03 +0100, > Quentin Schulz <quentin.schulz@xxxxxxxxxxxxxxxxxx> a écrit : > >> The number of GPIOs is gotten from a field within the structure >> referenced in the of_device.data but it was actually read before it was >> retrieved, thus it was dereferencing a null pointer. >> >> Set the number of GPIOs after retrieving of_device.data. >> >> Fixes: e1190083b89b ("pinctrl: axp209: add support for AXP813 GPIOs") >> >> Signed-off-by: Quentin Schulz <quentin.schulz@xxxxxxxxxxxxxxxxxx> >> Reported-by: Mylène Josserand <mylene.josserand@xxxxxxxxxxxxxxxxxx> > > Tested-by: Mylène Josserand <mylene.josserand@xxxxxxxxxxxxxxxxxx> Acked-by: Chen-Yu Tsai <wens@xxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html