]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
backlight: tosa_bl: use devm_gpio_request()
authorJingoo Han <jg1.han@samsung.com>
Sat, 21 Jul 2012 00:54:49 +0000 (10:54 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Jul 2012 03:53:16 +0000 (13:53 +1000)
commitdefebfdb17ae0e66dd9a5011bf9c279b7ba15c21
tree2b511fd9faa9985111fd9747cdb4fd1fb115d5b3
parent471c3bdf0b39a42051c9b0e626d71255c5ffe74c
backlight: tosa_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: Dmitry Baryshkov <dbaryshkov@gmail.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/video/backlight/tosa_bl.c