Skip to content

Commit 1350686

Browse files
committed
Merge branch 'pci/ctrl/iproc'
- Use bitmap API to allocate bitmaps instead of doing it by hand (Christophe JAILLET) * pci/ctrl/iproc: PCI: iproc: Use bitmap API to allocate bitmaps
2 parents 468276d + 5266409 commit 1350686

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/pci/controller/pcie-iproc-msi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -589,8 +589,8 @@ int iproc_msi_init(struct iproc_pcie *pcie, struct device_node *node)
589589
msi->has_inten_reg = true;
590590

591591
msi->nr_msi_vecs = msi->nr_irqs * EQ_LEN;
592-
msi->bitmap = devm_kcalloc(pcie->dev, BITS_TO_LONGS(msi->nr_msi_vecs),
593-
sizeof(*msi->bitmap), GFP_KERNEL);
592+
msi->bitmap = devm_bitmap_zalloc(pcie->dev, msi->nr_msi_vecs,
593+
GFP_KERNEL);
594594
if (!msi->bitmap)
595595
return -ENOMEM;
596596

0 commit comments

Comments
 (0)