diff options
| author | Axel Lin <[email protected]> | 2021-06-30 09:59:59 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2021-07-11 22:44:37 +0000 |
| commit | 1c73daee4bf30ccdff5e86dc400daa6f74735da5 (patch) | |
| tree | 6807230f281f851c987b41689c93d8149db395b5 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
| parent | regulator: mtk-dvfsrc: Fix wrong dev pointer for devm_regulator_register (diff) | |
| download | kernel-1c73daee4bf30ccdff5e86dc400daa6f74735da5.tar.gz kernel-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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions
