]> 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 09:59:00 +0000 (11:59 +0200)
commitf652eb4adf27494292195224b87b346fa0f2652e
treebb8bf362a92208edd10a140e9aa4ce6be0309f4a
parentaa77b187b1f09cf98be3a6beb67640954b1d274a
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