backlight: adp8870: use devm_ functions
authorJingoo Han <[email protected]>
Tue, 29 May 2012 22:07:21 +0000 (15:07 -0700)
committerLinus Torvalds <[email protected]>
Tue, 29 May 2012 23:22:30 +0000 (16:22 -0700)
commit91cdb239905ea98fbcd373254ea0de86ca16c1e0
treecbf4e8e72c020316ad260ad4c7a38c9b90e3de6f
parent58875ea925763e99b8862dc07bcdebde774d830b
backlight: adp8870: 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]>
Acked-by: Michael Hennerich <[email protected]>
Cc: Richard Purdie <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/video/backlight/adp8870_bl.c