]> git.baikalelectronics.ru Git - kernel.git/commit
INTEL-IGB: Convert iounmap to pci_iounmap
authorPeter Senna Tschudin <peter.senna@gmail.com>
Thu, 20 Mar 2014 03:31:08 +0000 (03:31 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 31 Mar 2014 22:48:03 +0000 (15:48 -0700)
commita607d15f3bcdae8ddc251d1149f3174468001971
treeef402ff74fd803f3db0ad2439b8027b238f7da47
parent6c30f5d876fc518ff20226e6031867c94f6dfbca
INTEL-IGB: Convert iounmap to pci_iounmap

Use pci_iounmap instead of iounmap when the virtual mapping was done
with pci_iomap. A simplified version of the semantic patch that finds this
issue is as follows: (http://coccinelle.lip6.fr/)

// <smpl>
@r@
expression addr;
@@
addr = pci_iomap(...)

@rr@
expression r.addr;
@@
* iounmap(addr)
// </smpl>

Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb_main.c