diff options
author | Axel Lin <axel.lin@ingics.com> | 2021-07-02 17:21:40 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-07-07 14:01:32 +0300 |
commit | ea986908ccfcc53204a03bb0841227e1b26578c4 (patch) | |
tree | 1202dd1b3a2945f694f5b935508202d18f3ce31d /drivers/regulator/hi6421-regulator.c | |
parent | c9cd752d8f3a6b13afc5332a60bea3e68f141738 (diff) | |
download | linux-ea986908ccfcc53204a03bb0841227e1b26578c4.tar.xz |
regulator: mtk-dvfsrc: Fix wrong dev pointer for devm_regulator_register
If use dev->parent, the regulator_unregister will not be called when this
driver is unloaded. Fix it by using dev instead.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Link: https://lore.kernel.org/r/20210702142140.2678130-1-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/hi6421-regulator.c')
0 files changed, 0 insertions, 0 deletions