]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/video/pxa168fb.c: use devm_ functions
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sat, 18 Feb 2012 18:19:29 +0000 (19:19 +0100)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Fri, 24 Feb 2012 00:49:59 +0000 (00:49 +0000)
commit06548de9f4a3f0615bf8d8b8868a6a36b6573e7e
treecf82680aca06941eaa2ec121879becfd278b722b
parent07c7c6d596d0856d2ac4169ad531543033965d72
drivers/video/pxa168fb.c: use devm_ functions

The various devm_ functions allocate memory that is released when a driver
detaches.  This patch uses these functions for data that is allocated in
the probe function of a platform device and is only freed in the remove
function.

By using devm_ioremap, it also removes a potential memory leak, because
there was no call to iounmap in the probe function.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
drivers/video/pxa168fb.c