summaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorCosmin Tanislav <demonsingur@gmail.com>2024-11-28 15:16:23 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-14 20:03:31 +0100
commit14258211d68436c8ebca527d63416a6d08ca56ee (patch)
treea534b11fd0e4457210aca5c853cf4841831df6ef /scripts/objdiff
parentd486b5741d987d3e0e6be4ac22cafdf94e6d1a47 (diff)
downloadlinux-14258211d68436c8ebca527d63416a6d08ca56ee.tar.gz
linux-14258211d68436c8ebca527d63416a6d08ca56ee.tar.bz2
linux-14258211d68436c8ebca527d63416a6d08ca56ee.zip
regmap: detach regmap from dev on regmap_exit
commit 3061e170381af96d1e66799d34264e6414d428a7 upstream. At the end of __regmap_init(), if dev is not NULL, regmap_attach_dev() is called, which adds a devres reference to the regmap, to be able to retrieve a dev's regmap by name using dev_get_regmap(). When calling regmap_exit, the opposite does not happen, and the reference is kept until the dev is detached. Add a regmap_detach_dev() function and call it in regmap_exit() to make sure that the devres reference is not kept. Cc: stable@vger.kernel.org Fixes: 72b39f6f2b5a ("regmap: Implement dev_get_regmap()") Signed-off-by: Cosmin Tanislav <demonsingur@gmail.com> Rule: add Link: https://lore.kernel.org/stable/20241128130554.362486-1-demonsingur%40gmail.com Link: https://patch.msgid.link/20241128131625.363835-1-demonsingur@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions