Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
regulator: core: Rely on regulator_dev_release to free constraints
commit 6333ef4 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: 29f5f48 ("regulator: core: Move more deallocation into class unregister") Signed-off-by: Charles Keepax <[email protected]> Signed-off-by: Mark Brown <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Lee Jones <[email protected]> Change-Id: Idef9de1452b1d4cca2b1b4bf08fc45c06c267549
- Loading branch information