Skip to content
Snippets Groups Projects
Unverified Commit e8419c40 authored by Mark Brown's avatar Mark Brown
Browse files

regmap: Clean up hwspinlock on regmap exit


We should free any hwspinlocks when we destroy the regmap, do so.

Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 267f3e4f
No related branches found
No related tags found
No related merge requests found
......@@ -1305,6 +1305,8 @@ void regmap_exit(struct regmap *map)
kfree(async->work_buf);
kfree(async);
}
if (IS_ENABLED(REGMAP_HWSPINLOCK) && map->hwlock)
hwspin_lock_free(map->hwlock);
kfree(map);
}
EXPORT_SYMBOL_GPL(regmap_exit);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment