backlight: gpio_backlight: use devm_backlight_device_register()
authorJingoo Han <jg1.han@samsung.com>
Tue, 12 Nov 2013 23:09:16 +0000 (15:09 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 13 Nov 2013 03:09:17 +0000 (12:09 +0900)
commitff47201582a5bbe6d14d2004e637351c41f78214
tree3fd66f4a7af678620425a8755f995fd7a98eb613
parentde2efd2a9ffba56eb0c00a48346685baa377c370
backlight: gpio_backlight: use devm_backlight_device_register()

Use devm_backlight_device_register() to make cleanup paths simpler, and
remove unnecessary remove().

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/backlight/gpio_backlight.c