coresight: Use devm_bitmap_zalloc when applicable
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 3 Nov 2021 18:39:18 +0000 (19:39 +0100)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 16 Nov 2021 17:13:21 +0000 (10:13 -0700)
commit934a5dc1546b1c637999bfcebcdd1598eaab4818
treea16fdaa640a455745570887ed9207d9673aa3938
parentfa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf
coresight: Use devm_bitmap_zalloc when applicable

'drvdata->chs.guaranteed' is a bitmap. So use 'devm_bitmap_kzalloc()' to
simplify code, improve the semantic and avoid some open-coded arithmetic
in allocator arguments.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/a4b8454f560b70cedf0e4d06275787f08d576ee5.1635964610.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/hwtracing/coresight/coresight-stm.c