diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2022-08-04 19:41:56 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2022-08-04 19:41:56 +0300 |
commit | 13506868d9f4011383fd652eb07fcc80bba1a456 (patch) | |
tree | fb2935f28b6f6ac89b0b409a2b7fad5b7749d5ae /drivers | |
parent | 468276d4ea40fa4f4c3209d52cd596eb8a2061cc (diff) | |
parent | 52664090101a881ee67eb23e24859d45fce34dc8 (diff) | |
download | linux-13506868d9f4011383fd652eb07fcc80bba1a456.tar.xz |
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
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pci/controller/pcie-iproc-msi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/controller/pcie-iproc-msi.c b/drivers/pci/controller/pcie-iproc-msi.c index 757b7fbcdc59..fee036b07cd4 100644 --- a/drivers/pci/controller/pcie-iproc-msi.c +++ b/drivers/pci/controller/pcie-iproc-msi.c @@ -589,8 +589,8 @@ int iproc_msi_init(struct iproc_pcie *pcie, struct device_node *node) msi->has_inten_reg = true; msi->nr_msi_vecs = msi->nr_irqs * EQ_LEN; - msi->bitmap = devm_kcalloc(pcie->dev, BITS_TO_LONGS(msi->nr_msi_vecs), - sizeof(*msi->bitmap), GFP_KERNEL); + msi->bitmap = devm_bitmap_zalloc(pcie->dev, msi->nr_msi_vecs, + GFP_KERNEL); if (!msi->bitmap) return -ENOMEM; |