backlight: corgi_lcd: use devm_gpio_request()
authorJingoo Han <jg1.han@samsung.com>
Mon, 30 Jul 2012 21:40:45 +0000 (14:40 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 31 Jul 2012 00:25:15 +0000 (17:25 -0700)
commit4405d5d9dd76740bfb715fc6a32343e087a13e1e
tree5191c4c7c0b4aaf98d392a1a4f35686d1e56e889
parent04e961fb1da31258f7bf4480a59518c3de3caa60
backlight: corgi_lcd: 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: Eric Miao <eric.y.miao@gmail.com>
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/corgi_lcd.c