diff options
author | Herve Codina <herve.codina@bootlin.com> | 2024-08-08 09:11:25 +0200 |
---|---|---|
committer | Christophe Leroy <christophe.leroy@csgroup.eu> | 2024-09-03 07:49:20 +0200 |
commit | c6f39c7c165fce8fe1a41327da02dcca0a3cac25 (patch) | |
tree | e8ef32c6357011328bd7997b031593a4f8190045 /include/soc/canaan | |
parent | b741b66f1cc83105fdea9ac5503c5ac106a37494 (diff) |
soc: fsl: qe: Add resource-managed muram allocators
Introduce devm_cpm_muram_alloc() and devm_cpm_muram_alloc_fixed(), the
resource-managed version of cpm_muram_alloc and cpm_muram_alloc_fixed().
These resource-managed versions simplify the user avoiding the need to
call cpm_muram_free(). Indeed, the allocated area returned by these
functions will be automatically freed on driver detach.
Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Link: https://lore.kernel.org/r/20240808071132.149251-33-herve.codina@bootlin.com
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Diffstat (limited to 'include/soc/canaan')
0 files changed, 0 insertions, 0 deletions