]> git.karo-electronics.de Git - karo-tx-linux.git/commit
backlight: add devm_backlight_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)
commitbf610565533857d781fca170e648fb9947fccd05
treed0d7ee7e2850f43f478b0dac301eec33605a1599
parent4c7fd94a6a38e29e03d3bbc68deffcecc4afeb36
backlight: add devm_backlight_device_{register,unregister}()

These functions allow the driver core to automatically clean up any
allocation made by backlight 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/backlight.c
include/linux/backlight.h