lkml.org 
[lkml]   [2014]   [Mar]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 2/2] INTEL-IGB: Convert iounmap to pci_iounmap
From
Date
On Tue, 2014-03-18 at 17:11 +0100, Peter Senna Tschudin wrote:
> 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 compilation only.
>
> drivers/net/ethernet/intel/igb/igb_main.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)

Thanks Peter, I have added you patch to my queue.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2014-03-19 06:01    [W:0.040 / U:0.564 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site