]> git.karo-electronics.de Git - karo-tx-linux.git/commit
lcd: add devm_lcd_device_{register,unregister}()
authorJingoo Han <jg1.han@samsung.com>
Fri, 7 Jun 2013 00:08:42 +0000 (10:08 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Jun 2013 05:42:43 +0000 (15:42 +1000)
commit974dca7145f104f78b49a826956ceff2ab7218fb
treea28ce9bacbb247fc616515e910a35effc8f0e38f
parentbf610565533857d781fca170e648fb9947fccd05
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