Guest User

Untitled

a guest
Sep 25th, 2026
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. diff --git a/drivers/base/regmap/regcache.c b/drivers/base/regmap/regcache.c
  2. index 0d58d900a..b137ded7f 100644
  3. --- a/drivers/base/regmap/regcache.c
  4. +++ b/drivers/base/regmap/regcache.c
  5. @@ -225,9 +225,7 @@ int regcache_init(struct regmap *map, const struct regmap_config *config)
  6. if (map->cache_ops->init) {
  7. dev_dbg(map->dev, "Initializing %s cache\n",
  8. map->cache_ops->name);
  9. - map->lock(map->lock_arg);
  10. ret = map->cache_ops->init(map);
  11. - map->unlock(map->lock_arg);
  12. if (ret)
  13. goto err_free_reg_defaults;
  14. }
  15. @@ -259,9 +257,7 @@ int regcache_init(struct regmap *map, const struct regmap_config *config)
  16. err_exit:
  17. if (map->cache_ops->exit) {
  18. dev_dbg(map->dev, "Destroying %s cache\n", map->cache_ops->name);
  19. - map->lock(map->lock_arg);
  20. map->cache_ops->exit(map);
  21. - map->unlock(map->lock_arg);
  22. }
  23. err_free_reg_defaults:
  24. kfree(map->reg_defaults);
  25. @@ -281,9 +277,7 @@ void regcache_exit(struct regmap *map)
  26. if (map->cache_ops->exit) {
  27. dev_dbg(map->dev, "Destroying %s cache\n",
  28. map->cache_ops->name);
  29. - map->lock(map->lock_arg);
  30. map->cache_ops->exit(map);
  31. - map->unlock(map->lock_arg);
  32. }
  33.  
  34. kfree(map->reg_defaults);
  35.  
Advertisement
Add Comment
Please, Sign In to add comment