mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-28 16:52:18 +00:00
ptp_pch: Replace deprecated PCI functions
pcim_iomap_regions() and pcim_iomap_table() have been deprecated in
commit e354bb84a4
("PCI: Deprecate pcim_iomap_table(),
pcim_iomap_regions_request_all()").
Replace these functions with pcim_iomap_region().
Additionally, pass KBUILD_MODNAME to that function, since the 'name'
parameter should indicate who (i.e., which driver) has requested the
resource.
Signed-off-by: Philipp Stanner <pstanner@redhat.com>
Link: https://patch.msgid.link/20241028095943.20498-2-pstanner@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
f611cc3892
commit
9c5649c177
@ -462,14 +462,14 @@ pch_probe(struct pci_dev *pdev, const struct pci_device_id *id)
|
||||
return ret;
|
||||
}
|
||||
|
||||
ret = pcim_iomap_regions(pdev, BIT(IO_MEM_BAR), "1588_regs");
|
||||
/* get the virtual address to the 1588 registers */
|
||||
chip->regs = pcim_iomap_region(pdev, IO_MEM_BAR, KBUILD_MODNAME);
|
||||
ret = PTR_ERR_OR_ZERO(chip->regs);
|
||||
if (ret) {
|
||||
dev_err(&pdev->dev, "could not locate IO memory address\n");
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* get the virtual address to the 1588 registers */
|
||||
chip->regs = pcim_iomap_table(pdev)[IO_MEM_BAR];
|
||||
chip->caps = ptp_pch_caps;
|
||||
chip->ptp_clock = ptp_clock_register(&chip->caps, &pdev->dev);
|
||||
if (IS_ERR(chip->ptp_clock))
|
||||
|
Loading…
Reference in New Issue
Block a user