aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/randomize_layout_plugin.c
diff options
context:
space:
mode:
authorAmelie Delaunay <[email protected]>2019-10-04 14:23:42 +0200
committerLinus Walleij <[email protected]>2019-10-05 18:39:09 +0200
commit2fd215b8fdbe4d3a609adbe3a323696393cb1e53 (patch)
treebc4087369f35b8fe5b418d604d0d4fc18f868b2d /scripts/gcc-plugins/randomize_layout_plugin.c
parent48659227e0a1d7897a4942c7b2cf925b581b6bf7 (diff)
pinctrl: stmfx: fix null pointer on remove
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions