mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
Revert "regmap: detach regmap from dev on regmap_exit"
This reverts commit 48dc44f3c1 which is
commit 3061e170381af96d1e66799d34264e6414d428a7 upstream.
It was backported incorrectly, a fixed version will be applied later.
Cc: Cosmin Tanislav <demonsingur@gmail.com>
Cc: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20250115033244.2540522-1-tzungbi@kernel.org
Reported-by: Tzung-Bi Shih <tzungbi@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
@@ -652,17 +652,6 @@ int regmap_attach_dev(struct device *dev, struct regmap *map,
|
|||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(regmap_attach_dev);
|
EXPORT_SYMBOL_GPL(regmap_attach_dev);
|
||||||
|
|
||||||
static int dev_get_regmap_match(struct device *dev, void *res, void *data);
|
|
||||||
|
|
||||||
static int regmap_detach_dev(struct device *dev, struct regmap *map)
|
|
||||||
{
|
|
||||||
if (!dev)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
return devres_release(dev, dev_get_regmap_release,
|
|
||||||
dev_get_regmap_match, (void *)map->name);
|
|
||||||
}
|
|
||||||
|
|
||||||
static enum regmap_endian regmap_get_reg_endian(const struct regmap_bus *bus,
|
static enum regmap_endian regmap_get_reg_endian(const struct regmap_bus *bus,
|
||||||
const struct regmap_config *config)
|
const struct regmap_config *config)
|
||||||
{
|
{
|
||||||
@@ -1513,7 +1502,6 @@ int regmap_reinit_cache(struct regmap *map, const struct regmap_config *config)
|
|||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
regmap_detach_dev(map->dev, map);
|
|
||||||
regcache_exit(map);
|
regcache_exit(map);
|
||||||
regmap_debugfs_exit(map);
|
regmap_debugfs_exit(map);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user