diff options
author | 2021-06-30 17:59:59 +0800 | |
---|---|---|
committer | 2021-07-11 23:44:37 +0100 | |
commit | 1c73daee4bf30ccdff5e86dc400daa6f74735da5 (patch) | |
tree | 6807230f281f851c987b41689c93d8149db395b5 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | regulator: mtk-dvfsrc: Fix wrong dev pointer for devm_regulator_register (diff) | |
download | linux-dev-1c73daee4bf30ccdff5e86dc400daa6f74735da5.tar.xz linux-dev-1c73daee4bf30ccdff5e86dc400daa6f74735da5.zip |
regulator: hi6421: Fix getting wrong drvdata
Since config.dev = pdev->dev.parent in current code, so
dev_get_drvdata(rdev->dev.parent) call in hi6421_regulator_enable
returns the drvdata of the mfd device rather than the regulator. Fix it.
This was broken while converting to use simplified DT parsing because the
config.dev changed from pdev->dev to pdev->dev.parent for parsing the
parent's of_node.
Fixes: 29dc269a85ef ("regulator: hi6421: Convert to use simplified DT parsing")
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Link: https://lore.kernel.org/r/20210630095959.2411543-1-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions