]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
regulator/core: Revert "fix kobject release warning and memory leak in regulator_regi...
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Mon, 18 Sep 2023 22:50:27 +0000 (00:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Oct 2023 10:03:11 +0000 (12:03 +0200)
commitd63d39e7f95e7586507a0e196add71fd8c3d6d43
tree752c66425bf171edb5560a2aa5f91cc50bd3a936
parent2353f64762330cef00636b3584f413233a77c5a1
regulator/core: Revert "fix kobject release warning and memory leak in regulator_register()"

[ Upstream commit 6e800968f6a715c0661716d2ec5e1f56ed9f9c08 ]

This reverts commit 5f4b204b6b8153923d5be8002c5f7082985d153f.

Since rdev->dev now has a release() callback, the proper way of freeing
the initialized device can be restored.

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Link: https://lore.kernel.org/r/d7f469f3f7b1f0e1d52f9a7ede3f3c5703382090.1695077303.git.mirq-linux@rere.qmqm.pl
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/regulator/core.c