diff options
author | Julia Lawall <julia@diku.dk> | 2011-05-13 18:46:10 +0200 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2011-06-01 02:25:04 -0700 |
commit | 77f7059a329fc8a514bbcc2f204aaa7c150e8046 (patch) | |
tree | a75f324b69a310e5e240e4f6cdec76b3b78e9b1f /arch/arm/plat-omap/include | |
parent | 30ebad9d756a0b2c97c6c4ca6c5e6b799e3b64da (diff) | |
download | talos-obmc-linux-77f7059a329fc8a514bbcc2f204aaa7c150e8046.tar.gz talos-obmc-linux-77f7059a329fc8a514bbcc2f204aaa7c150e8046.zip |
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/)
// <smpl>
@@
expression e1,e2;
@@
*platform_device_put(e1);
... when != e1 = e2
*platform_device_del(e1);
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap/include')
0 files changed, 0 insertions, 0 deletions