From: Philipp Stanner Date: Thu, 17 Apr 2025 08:25:12 +0000 (+0200) Subject: i2c: thunderx: Use non-hybrid PCI devres API X-Git-Tag: v6.16-rc1~112^2~1^2~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8ae92c691d6fba3d568884ec9950d309408c3aa5;p=thirdparty%2Flinux.git i2c: thunderx: Use non-hybrid PCI devres API thunderx enables its PCI device with pcim_enable_device(). This, implicitly, switches the function pci_request_regions() into managed mode, where it becomes a devres function. The PCI subsystem wants to remove this hybrid nature from its interfaces. To do so, users of the aforementioned combination of functions must be ported to non-hybrid functions. Replace the call to sometimes-managed pci_request_regions() with one to the always-managed pcim_request_all_regions(). Signed-off-by: Philipp Stanner Link: https://lore.kernel.org/r/20250417082511.22272-3-phasta@kernel.org Signed-off-by: Andi Shyti --- diff --git a/drivers/i2c/busses/i2c-thunderx-pcidrv.c b/drivers/i2c/busses/i2c-thunderx-pcidrv.c index 0dc08cd97e8a3..3959f23fc4407 100644 --- a/drivers/i2c/busses/i2c-thunderx-pcidrv.c +++ b/drivers/i2c/busses/i2c-thunderx-pcidrv.c @@ -178,7 +178,7 @@ static int thunder_i2c_probe_pci(struct pci_dev *pdev, if (ret) return ret; - ret = pci_request_regions(pdev, DRV_NAME); + ret = pcim_request_all_regions(pdev, DRV_NAME); if (ret) return ret;