iommu/arm-smmu-v3: Simplify memory allocation
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 7 Feb 2022 22:47:55 +0000 (23:47 +0100)
committerWill Deacon <will@kernel.org>
Tue, 8 Feb 2022 15:55:05 +0000 (15:55 +0000)
commitfcdeb8c34043a192c881b0594b26d195d5e57997
treef6808009161eaf86a819562027437e3b83f49ed6
parent98b64741d61124a12fb05a7595acb1fd6c1dc55d
iommu/arm-smmu-v3: Simplify memory allocation

Use devm_bitmap_zalloc() instead of hand writing it.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/598bd905103dcbe5653a54bb0dfb5a8597728214.1644274051.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c