backlight: tps65217_bl: use devm_backlight_device_register()
authorJingoo Han <jg1.han@samsung.com>
Tue, 12 Nov 2013 23:09:24 +0000 (15:09 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 13 Nov 2013 03:09:18 +0000 (12:09 +0900)
commit626d09089f350f876f965c1e6fa4621498213b1e
tree4878739d499e0b9f92085f8c7b20f3f87b2ff0af
parentc423a7712170f2ce51a71cc117cd2d588664bebe
backlight: tps65217_bl: 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/tps65217_bl.c