summaryrefslogtreecommitdiffstats
path: root/drivers/irqchip/irq-mvebu-gicp.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2021-06-18 17:16:56 +0200
committerMarc Zyngier <maz@kernel.org>2021-07-26 19:04:10 +0200
commit3db3969f5375fe0a43c03cb4b55ed643585b140d (patch)
tree370969f7e8fb42ce2d50e6b60d0df4af6fea363b /drivers/irqchip/irq-mvebu-gicp.c
parentirqchip/ls-scfg-msi: Switch to devm_bitmap_zalloc() (diff)
downloadlinux-3db3969f5375fe0a43c03cb4b55ed643585b140d.tar.xz
linux-3db3969f5375fe0a43c03cb4b55ed643585b140d.zip
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 <andriy.shevchenko@linux.intel.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20210618151657.65305-6-andriy.shevchenko@linux.intel.com
Diffstat (limited to 'drivers/irqchip/irq-mvebu-gicp.c')
-rw-r--r--drivers/irqchip/irq-mvebu-gicp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/irqchip/irq-mvebu-gicp.c b/drivers/irqchip/irq-mvebu-gicp.c
index 3be5c5dba1da..fe88a782173d 100644
--- a/drivers/irqchip/irq-mvebu-gicp.c
+++ b/drivers/irqchip/irq-mvebu-gicp.c
@@ -210,9 +210,7 @@ static int mvebu_gicp_probe(struct platform_device *pdev)
gicp->spi_cnt += gicp->spi_ranges[i].count;
}
- gicp->spi_bitmap = devm_kcalloc(&pdev->dev,
- BITS_TO_LONGS(gicp->spi_cnt), sizeof(long),
- GFP_KERNEL);
+ gicp->spi_bitmap = devm_bitmap_zalloc(&pdev->dev, gicp->spi_cnt, GFP_KERNEL);
if (!gicp->spi_bitmap)
return -ENOMEM;