lcd: add devm_lcd_device_{register,unregister}()
authorJingoo Han <jg1.han@samsung.com>
Wed, 3 Jul 2013 22:05:14 +0000 (15:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:07:43 +0000 (16:07 -0700)
commit1d0c48e66b3f1cf40660f69a87f55af3df0b2ae3
tree0b3531877c44659181ae17098ee581f09833f40e
parent8318fde4ac78f6793b1cbaf57659902253a61617
lcd: add devm_lcd_device_{register,unregister}()

These functions allow the driver core to automatically clean up any
allocation made by lcd drivers.  Thus it simplifies the error paths.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/backlight/lcd.c
include/linux/lcd.h