scsi: ufs: Replace deprecated PCI functions
Subsystems (2)
PATCH 1/1 scsi: ufs: Replace deprecated PCI functions
pcim_iomap_regions() and pcim_iomap_table() have been deprecated in commit e354bb84a4c1 ("PCI: Deprecate pcim_iomap_table(), pcim_iomap_regions_request_all()").
Replace these functions with pcim_iomap_region().
--- drivers/ufs/host/tc-dwc-g210-pci.c | 8 +++----- drivers/ufs/host/ufshcd-pci.c | 8 +++----- 2 files changed, 6 insertions(+), 10 deletions(-)
drivers/ufs/host/tc-dwc-g210-pci.c +3 -5
@@ -80,14 +80,12 @@ tc_dwc_g210_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)pci_set_master (pdev); - err =pcim_iomap_regions (pdev,1 <<0 ,UFSHCD ); -if (err <0 ) { + mmio_base =pcim_iomap_region (pdev,0 ,UFSHCD ); +if (IS_ERR (mmio_base)) {dev_err (&pdev->dev,"request and iomap failed\n" ); -return err; +return PTR_ERR (mmio_base); } - mmio_base =pcim_iomap_table (pdev)[0 ]; - err =ufshcd_alloc_host (&pdev->dev, &hba);if (err) {dev_err (&pdev->dev,"Allocation failed\n" );
drivers/ufs/host/ufshcd-pci.c +3 -5
@@ -588,14 +588,12 @@ ufshcd_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)pci_set_master (pdev); - err =pcim_iomap_regions (pdev,1 <<0 ,UFSHCD ); -if (err <0 ) { + mmio_base =pcim_iomap_region (pdev,0 ,UFSHCD ); +if (IS_ERR (mmio_base)) {dev_err (&pdev->dev,"request and iomap failed\n" ); -return err; +return PTR_ERR (mmio_base); } - mmio_base =pcim_iomap_table (pdev)[0 ]; - err =ufshcd_alloc_host (&pdev->dev, &hba);if (err) {dev_err (&pdev->dev,"Allocation failed\n" );
Signature · 1 line
2.47.0
Quoted 7 lines · Philipp Stanner
pcim_iomap_regions()andpcim_iomap_table()have been deprecated in commite354bb84a4c1("PCI: Deprecatepcim_iomap_table(),pcim_iomap_regions_request_all()").Replace these functions with
pcim_iomap_region().Signed-off-by Philipp Stanner <[email protected]>
Quoted 7 lines · Philipp Stanner
pcim_iomap_regions()andpcim_iomap_table()have been deprecated in commite354bb84a4c1("PCI: Deprecatepcim_iomap_table(),pcim_iomap_regions_request_all()").Replace these functions with
pcim_iomap_region().Signed-off-by Philipp Stanner <[email protected]>
Quoted 49 lines
--- drivers/ufs/host/tc-dwc-g210-pci.c | 8 +++----- drivers/ufs/host/ufshcd-pci.c | 8 +++----- 2 files changed, 6 insertions(+), 10 deletions(-)drivers/ufs/host/tc-dwc-g210-pci.c +3
-5@@ -80,14 +80,12 @@ tc_dwc_g210_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)pci_set_master (pdev); - err =pcim_iomap_regions (pdev,1 <<0 ,UFSHCD ); -if (err <0 ) { + mmio_base =pcim_iomap_region (pdev,0 ,UFSHCD ); +if (IS_ERR (mmio_base)) {dev_err (&pdev->dev,"request and iomap failed\n" ); -return err; +return PTR_ERR (mmio_base); } - mmio_base =pcim_iomap_table (pdev)[0 ]; - err =ufshcd_alloc_host (&pdev->dev, &hba);if (err) {dev_err (&pdev->dev,"Allocation failed\n" );drivers/ufs/host/ufshcd-pci.c +3
-5@@ -588,14 +588,12 @@ ufshcd_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)pci_set_master (pdev); - err =pcim_iomap_regions (pdev,1 <<0 ,UFSHCD ); -if (err <0 ) { + mmio_base =pcim_iomap_region (pdev,0 ,UFSHCD ); +if (IS_ERR (mmio_base)) {dev_err (&pdev->dev,"request and iomap failed\n" ); -return err; +return PTR_ERR (mmio_base); } - mmio_base =pcim_iomap_table (pdev)[0 ]; - err =ufshcd_alloc_host (&pdev->dev, &hba);if (err) {dev_err (&pdev->dev,"Allocation failed\n" );
Martin K. Petersen
AppliedPhilipp,
Quoted 5 lines
pcim_iomap_regions()andpcim_iomap_table()have been deprecated in commite354bb84a4c1("PCI: Deprecatepcim_iomap_table(),pcim_iomap_regions_request_all()").Replace these functions with
pcim_iomap_region().
Applied to 6.13/scsi-staging, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering
Martin K. Petersen
AppliedQuoted 8 lines · Philipp Stanner
pcim_iomap_regions()andpcim_iomap_table()have been deprecated in commite354bb84a4c1("PCI: Deprecatepcim_iomap_table(),pcim_iomap_regions_request_all()").Replace these functions with
pcim_iomap_region().[...]
Applied to 6.13/scsi-queue, thanks!
[1/1] scsi: ufs: Replace deprecated PCI functions
https://git.kernel.org/mkp/scsi/c/84c1e27e6c64
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering