Skip to content

Commit fe61b29

Browse files
tititiou36Hans Verkuil
authored andcommitted
media: intel/ipu6: Fix some redundant resources freeing in ipu6_pci_remove()
pcim_iomap_regions() and pcim_enable_device() are used in the probe. So the corresponding managed resources don't need to be freed explicitly in the remove function. Remove the incorrect pci_release_regions() and pci_disable_device() calls. Fixes: 25fedc0 ("media: intel/ipu6: add Intel IPU6 PCI device driver") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: Bingbu Cao <bingbu.cao@intel.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
1 parent fd7ccfb commit fe61b29

File tree

1 file changed

+0
-3
lines changed
  • drivers/media/pci/intel/ipu6

1 file changed

+0
-3
lines changed

drivers/media/pci/intel/ipu6/ipu6.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -727,9 +727,6 @@ static void ipu6_pci_remove(struct pci_dev *pdev)
727727
pm_runtime_forbid(&pdev->dev);
728728
pm_runtime_get_noresume(&pdev->dev);
729729

730-
pci_release_regions(pdev);
731-
pci_disable_device(pdev);
732-
733730
release_firmware(isp->cpd_fw);
734731

735732
ipu6_mmu_cleanup(psys_mmu);

0 commit comments

Comments
 (0)