On Fri, Dec 23, 2016 at 03:41:33PM +0530, Arvind Yadav wrote:Please see commit 76cf3fc844a4 ("i2c-designware-pci: use managed functions pcim_* and devm_*") how it simplified error handling here.
Release IO memory mapping, if i2c_dw_pci_probe is not successful.
Point of pcim_iomap_regions() is that the regions are released
automatically. So there is no need for explicit release.