Skip to content
Unverified Commit ea986908 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

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: default avatarAxel Lin <axel.lin@ingics.com>
Link: https://lore.kernel.org/r/20210702142140.2678130-1-axel.lin@ingics.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent c9cd752d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment