drivers/video/backlight/atmel-pwm-bl.c: use devm_ functions
authorJingoo Han <jg1.han@samsung.com>
Mon, 30 Jul 2012 21:40:31 +0000 (14:40 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 31 Jul 2012 00:25:14 +0000 (17:25 -0700)
commita4be29ac6df4f7c7a0225f7f72c78f4fb10114c0
tree17fc7c823ce34f0a3d4a0cdca0924295dfb19d86
parenta824c73cc33e149f79914bcebd90ace1433c0721
drivers/video/backlight/atmel-pwm-bl.c: 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 <jg1.han@samsung.com>
Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/backlight/atmel-pwm-bl.c