hwspin_unlock_irqrestore(map->hwlock, &map->spinlock_flags);
}
-#endif
+
++static void regmap_lock_unlock_none(void *__map)
++{
++
++}
+
static void regmap_lock_mutex(void *__map)
{
struct regmap *map = __map;
regmap_range_exit(map);
kfree(map->work_buf);
err_hwlock:
- if (IS_ENABLED(REGMAP_HWSPINLOCK) && map->hwlock)
+ if (map->hwlock)
hwspin_lock_free(map->hwlock);
++err_name:
++ kfree_const(map->name);
err_map:
kfree(map);
err:
kfree(async->work_buf);
kfree(async);
}
- if (IS_ENABLED(REGMAP_HWSPINLOCK) && map->hwlock)
+ if (map->hwlock)
hwspin_lock_free(map->hwlock);
++ kfree_const(map->name);
kfree(map);
}
EXPORT_SYMBOL_GPL(regmap_exit);