drivers/pinctrl/pinctrl-nomadik.c: drop devm_kfree of devm_kzalloc'd data
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sat, 4 Aug 2012 16:50:47 +0000 (18:50 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 7 Aug 2012 12:34:12 +0000 (14:34 +0200)
commit75c353ecacf54dbcca5e2e4388088893aac0fc34
tree2d82c4a260a11e822303d033b07293d33bea52cb
parent8e406fe4aebee50b18176947a68aab6f519843de
drivers/pinctrl/pinctrl-nomadik.c: drop devm_kfree of devm_kzalloc'd data

devm_kfree should not have to be explicitly used.

The semantic patch that fixes this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
expression x,d;
@@

x = devm_kzalloc(...)
...
?-devm_kfree(d,x);
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-nomadik.c