aboutsummaryrefslogtreecommitdiff
path: root/drivers/iio/buffer/industrialio-buffer-dmaengine.c
diff options
context:
space:
mode:
authorCosmin Tanislav <[email protected]>2024-11-28 15:16:23 +0200
committerMark Brown <[email protected]>2024-12-02 00:29:31 +0000
commit3061e170381af96d1e66799d34264e6414d428a7 (patch)
tree8fdecde9ae928b8e40a47b964d2a9192e7609da7 /drivers/iio/buffer/industrialio-buffer-dmaengine.c
parent3f1aa0c533d9dd8a835caf9a6824449c463ee7e2 (diff)
regmap: detach regmap from dev on regmap_exit
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: [email protected] Fixes: 72b39f6f2b5a ("regmap: Implement dev_get_regmap()") Signed-off-by: Cosmin Tanislav <[email protected]> Rule: add Link: https://lore.kernel.org/stable/20241128130554.362486-1-demonsingur%40gmail.com Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/iio/buffer/industrialio-buffer-dmaengine.c')
0 files changed, 0 insertions, 0 deletions