summaryrefslogtreecommitdiff
path: root/drivers/irqchip/irq-partition-percpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/irqchip/irq-partition-percpu.c')
-rw-r--r--drivers/irqchip/irq-partition-percpu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/irqchip/irq-partition-percpu.c b/drivers/irqchip/irq-partition-percpu.c
index 89c23a1566dc..8e76d2913e6b 100644
--- a/drivers/irqchip/irq-partition-percpu.c
+++ b/drivers/irqchip/irq-partition-percpu.c
@@ -215,8 +215,7 @@ struct partition_desc *partition_create_desc(struct fwnode_handle *fwnode,
goto out;
desc->domain = d;
- desc->bitmap = kcalloc(BITS_TO_LONGS(nr_parts), sizeof(long),
- GFP_KERNEL);
+ desc->bitmap = bitmap_zalloc(nr_parts, GFP_KERNEL);
if (WARN_ON(!desc->bitmap))
goto out;