OSDN Git Service

PCI: iproc: Use bitmap API to allocate bitmaps
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 4 Jul 2022 13:15:03 +0000 (15:15 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 5 Jul 2022 20:02:56 +0000 (15:02 -0500)
commit52664090101a881ee67eb23e24859d45fce34dc8
tree716a9bbbfa769f9080ec1ca16f20e4ba7d842abb
parentf2906aa863381afb0015a9eb7fefad885d4e5a56
PCI: iproc: Use bitmap API to allocate bitmaps

Use bitmap_zalloc()/bitmap_free() instead of hand-writing them.

It is less verbose and it improves the semantic.

Link: https://lore.kernel.org/r/d839a951358ceb447226dc776590a2a38f3e3f9d.1656940469.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Ray Jui <ray.jui@broadcom.com>
drivers/pci/controller/pcie-iproc-msi.c