Skip to content

Commit 3db3969

Browse files
andy-shevMarc Zyngier
authored andcommitted
irqchip/mvebu-gicp: Switch to devm_bitmap_zalloc()
Switch to devm_bitmap_zalloc() to show clearly what we are allocating. Besides that it returns pointer of bitmap type instead of opaque void *. Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 43a1965 commit 3db3969

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/irqchip/irq-mvebu-gicp.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,7 @@ static int mvebu_gicp_probe(struct platform_device *pdev)
210210
gicp->spi_cnt += gicp->spi_ranges[i].count;
211211
}
212212

213-
gicp->spi_bitmap = devm_kcalloc(&pdev->dev,
214-
BITS_TO_LONGS(gicp->spi_cnt), sizeof(long),
215-
GFP_KERNEL);
213+
gicp->spi_bitmap = devm_bitmap_zalloc(&pdev->dev, gicp->spi_cnt, GFP_KERNEL);
216214
if (!gicp->spi_bitmap)
217215
return -ENOMEM;
218216

0 commit comments

Comments
 (0)