]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/tegra-smmu: Use devm_bitmap_zalloc when applicable
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 26 Sep 2021 13:07:18 +0000 (15:07 +0200)
committerJoerg Roedel <jroedel@suse.de>
Mon, 18 Oct 2021 11:39:41 +0000 (13:39 +0200)
commitf3cf2f77771ff19fa51d37d78e8d32f717c6fe99
treeffcea7f8bb1575a248693f7de4ee04f3b73155d6
parent62d0c3c91d43890e76d06eab873e9ff46a58308c
iommu/tegra-smmu: Use devm_bitmap_zalloc when applicable

'smmu->asids' is a bitmap. So use 'devm_kzalloc()' to simplify code,
improve the semantic of the code and avoid some open-coded arithmetic in
allocator arguments.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/2c0f4da80c3b5ef83299c651f69a563034c1c6cb.1632661557.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/tegra-smmu.c