diff options
author | Axel Lin <axel.lin@ingics.com> | 2021-06-30 12:59:59 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-07-12 01:44:37 +0300 |
commit | 1c73daee4bf30ccdff5e86dc400daa6f74735da5 (patch) | |
tree | 6807230f281f851c987b41689c93d8149db395b5 /include/linux/cpuhotplug.h | |
parent | ea986908ccfcc53204a03bb0841227e1b26578c4 (diff) | |
download | linux-1c73daee4bf30ccdff5e86dc400daa6f74735da5.tar.xz |
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 'include/linux/cpuhotplug.h')
0 files changed, 0 insertions, 0 deletions