]> git.baikalelectronics.ru Git - kernel.git/commit
backlight: atmel-pwm-bl: use devm_gpio_request()
authorJingoo Han <jg1.han@samsung.com>
Mon, 30 Jul 2012 21:40:36 +0000 (14:40 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 31 Jul 2012 00:25:15 +0000 (17:25 -0700)
commit1cf71497032132ee770af54f6503f0f26961e184
tree1032167c60a4cc9c9465944db3e252ba7c29a13e
parentd6e6ddf74052a98746ed6e256bf716b38402844c
backlight: atmel-pwm-bl: use devm_gpio_request()

The devm_ functions allocate memory that is released when a driver
detaches.  This patch uses devm_gpio_request() for these functions.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Cc: 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