Re: [PATCH 1/1] pinctrl: stmfx: fix null pointer on remove
From: Linus Walleij
Date: Sat Oct 05 2019 - 12:40:00 EST
On Fri, Oct 4, 2019 at 2:23 PM Amelie Delaunay <amelie.delaunay@xxxxxx> wrote:
> dev_get_platdata(&pdev->dev) returns a pointer on struct stmfx_pinctrl,
> not on struct stmfx (platform_set_drvdata(pdev, pctl); in probe).
> Pointer on struct stmfx is stored in driver data of pdev parent (in probe:
> struct stmfx *stmfx = dev_get_drvdata(pdev->dev.parent);).
>
> Fixes: 1490d9f841b1 ("pinctrl: Add STMFX GPIO expander Pinctrl/GPIO driver")
> Signed-off-by: Amelie Delaunay <amelie.delaunay@xxxxxx>
Patch applied for fixes.
Yours,
Linus Walleij