coccinelle: semantic patches related to devm_ functions (part 1)
authorJulia Lawall <Julia.Lawall@lip6.fr>
Tue, 27 Dec 2011 17:28:50 +0000 (18:28 +0100)
committerMichal Marek <mmarek@suse.cz>
Sat, 14 Jan 2012 21:39:53 +0000 (22:39 +0100)
commit22e0059af301ec163d563c3590d2277c2a557d4f
tree6ac7178b9f2ef6a6210f98f92020e7987ac8bc28
parentf95ab20972cfefa8ee5428d6c3afd4cb8eacabf4
coccinelle: semantic patches related to devm_ functions (part 1)

devm_ functions allocate memory that is to remain allocated until the
device is detached.  This patch checks for opportunities for using the
function devm_request_and_ioremap.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/coccinelle/api/devm_request_and_ioremap.cocci [new file with mode: 0644]