drivers/video/au*fb.c: use devm_ functions
authorJulia Lawall <julia.lawall@lip6.fr>
Sat, 21 Jan 2012 15:01:58 +0000 (16:01 +0100)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Sat, 28 Jan 2012 20:47:52 +0000 (20:47 +0000)
commit1c16697bf9d5b206cb0d2b905a54de5e077296be
tree1d28548fb55a4178c23365e647ec626d4cc62d68
parent92a9c19a89af2ca219fbb040a0059f414a4b7223
drivers/video/au*fb.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.

In au1100fb.c, the probe function now returns -ENODEV on failure.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Acked-by: Manuel Lauss <manuel.lauss@googlemail.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
drivers/video/au1100fb.c
drivers/video/au1200fb.c