diff options
author | Charles Keepax <ckeepax@opensource.wolfsonmicro.com> | 2016-01-26 16:38:59 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-05-10 10:26:33 +0200 |
commit | 706bfc9245371ba69735949aad006a132900bd02 (patch) | |
tree | fd30b81cb19c03635b033719e6de11076fc5d5eb /drivers/net/dsa/mv88e6xxx.c | |
parent | 5884abeab820b70fcb209ac213a4ff03e509e774 (diff) |
regulator: core: Rely on regulator_dev_release to free constraints
commit 6333ef46bbe514a8ece6c432aab6bcf8637b2d7c upstream.
As we now free the constraints in regulator_dev_release we will still
call free on the constraints pointer even if we went down an error
path in regulator_register, because it is only allocated after the
device_register. As such we no longer need to free rdev->constraints
on the error paths, so this patch removes said frees.
Fixes: 29f5f4860a8e ("regulator: core: Move more deallocation into class unregister")
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/dsa/mv88e6xxx.c')
0 files changed, 0 insertions, 0 deletions