backlight: tosa_bl: use devm_ functions
authorJingoo Han <[email protected]>
Tue, 29 May 2012 22:07:25 +0000 (15:07 -0700)
committerLinus Torvalds <[email protected]>
Tue, 29 May 2012 23:22:31 +0000 (16:22 -0700)
commitf072c8900c11bc91eb3fa9287bab4ce606632be5
treed0301ae9b4d5089f1c9104c0d9c44de82ef7e982
parentd073adc5caf03a928a230baf2d8a86b1f9a03710
backlight: tosa_bl: use devm_ functions

The devm_ functions allocate memory that is released when a driver
detaches.  This patch uses devm_kzalloc of these functions.

Signed-off-by: Jingoo Han <[email protected]>
Cc: Dmitry Baryshkov <[email protected]>
Cc: Richard Purdie <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/video/backlight/tosa_bl.c