Skip to content

Commit b7688fc

Browse files
Philipp Stannertakaswie
authored andcommitted
firewire: ohci: Replace deprecated PCI functions
pcim_iomap_regions() and pcim_iomap_table() have been deprecated in commit e354bb8 ("PCI: Deprecate pcim_iomap_table(), pcim_iomap_regions_request_all()"). Replace these functions with pcim_iomap_region(). Signed-off-by: Philipp Stanner <pstanner@redhat.com> Link: https://lore.kernel.org/r/20241028094440.19115-3-pstanner@redhat.com Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
1 parent 8f04019 commit b7688fc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/firewire/ohci.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3726,12 +3726,11 @@ static int pci_probe(struct pci_dev *dev,
37263726
return -ENXIO;
37273727
}
37283728

3729-
err = pcim_iomap_regions(dev, 1 << 0, ohci_driver_name);
3730-
if (err) {
3729+
ohci->registers = pcim_iomap_region(dev, 0, ohci_driver_name);
3730+
if (IS_ERR(ohci->registers)) {
37313731
ohci_err(ohci, "request and map MMIO resource unavailable\n");
37323732
return -ENXIO;
37333733
}
3734-
ohci->registers = pcim_iomap_table(dev)[0];
37353734

37363735
for (i = 0; i < ARRAY_SIZE(ohci_quirks); i++)
37373736
if ((ohci_quirks[i].vendor == dev->vendor) &&

0 commit comments

Comments
 (0)