kernel_samsung_a53x/drivers/base/regmap
Cosmin Tanislav 5c31924089 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>
2024-12-17 13:24:29 +01:00
..
internal.h regmap: Add bulk read/write callbacks into regmap_config 2024-11-18 23:19:53 +01:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regcache-flat.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regcache-lzo.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regcache-rbtree.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regcache.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regmap-ac97.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regmap-debugfs.c regmap: debugfs: Fix a erroneous check after snprintf() 2024-11-18 11:42:53 +01:00
regmap-i2c.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regmap-i3c.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regmap-irq.c regmap: irq: Set lockdep class for hierarchical IRQ domains 2024-12-17 13:24:03 +01:00
regmap-mmio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regmap-sccb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regmap-sdw.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regmap-slimbus.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regmap-spi-avmm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regmap-spi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regmap-spmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regmap-w1.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regmap.c regmap: detach regmap from dev on regmap_exit 2024-12-17 13:24:29 +01:00
trace.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00