From: Julia Lawall Date: Fri, 13 May 2011 16:46:10 +0000 (+0200) Subject: arch/arm/mach-omap1/dma.c: Invert calls to platform_device_put and platform_device_del X-Git-Tag: v3.0-rc3~51^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77f7059a329fc8a514bbcc2f204aaa7c150e8046;p=pandora-kernel.git arch/arm/mach-omap1/dma.c: Invert calls to platform_device_put and platform_device_del Platform_device_del should be called before platform_device_put, as platform_device_put can delete the structure. Additionally, improve the error handling code for the call to ioremap, so that it calls platform_device_put. The semantic match that finds this problem is: (http://coccinelle.lip6.fr/) // @@ expression e1,e2; @@ *platform_device_put(e1); ... when != e1 = e2 *platform_device_del(e1); // Signed-off-by: Julia Lawall Signed-off-by: Tony Lindgren --- Reading git-diff-tree failed