]> git.karo-electronics.de Git - karo-tx-linux.git/commit
lcd: add devm_lcd_device_{register,unregister}()
authorJingoo Han <jg1.han@samsung.com>
Wed, 19 Jun 2013 00:07:13 +0000 (10:07 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:27:01 +0000 (17:27 +1000)
commit46bde58a3a558291522657e890620e4d0de03ade
tree744a0239bba095c106c026138c7d35db9830e836
parentbdb7583a1f2453b8e8c3146a97e7a515531829b6
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>
drivers/video/backlight/lcd.c
include/linux/lcd.h