projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43a1965
)
irqchip/mvebu-gicp: Switch to devm_bitmap_zalloc()
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Fri, 18 Jun 2021 15:16:56 +0000
(18:16 +0300)
committer
Marc Zyngier
<maz@kernel.org>
Mon, 26 Jul 2021 17:04:10 +0000
(18:04 +0100)
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
drivers/irqchip/irq-mvebu-gicp.c
patch
|
blob
|
history
diff --git
a/drivers/irqchip/irq-mvebu-gicp.c
b/drivers/irqchip/irq-mvebu-gicp.c
index
3be5c5d
..
fe88a78
100644
(file)
--- 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;