drivers/video/backlight/adp5520_bl.c: use devm_ functions
authorJulia Lawall <[email protected]>
Fri, 23 Mar 2012 22:02:01 +0000 (15:02 -0700)
committerLinus Torvalds <[email protected]>
Fri, 23 Mar 2012 23:58:33 +0000 (16:58 -0700)
commit050ea48bbfc80b6aa81f8df0d9f25e6e47d96e98
tree8de9685ba5e2115ed6e14228d017c93351be2c2c
parentce969228fdb54a7e3d7cc1ed27367fd4b9525d74
drivers/video/backlight/adp5520_bl.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.

Signed-off-by: Julia Lawall <[email protected]>
Cc: Dimitris Papastamos <[email protected]>
Cc: Richard Purdie <[email protected]>
Cc: Florian Tobias Schandinat <[email protected]>
Cc: Mark Brown <[email protected]>
Acked-by: Michael Hennerich <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/video/backlight/adp5520_bl.c