]> git.karo-electronics.de Git - karo-tx-linux.git/commit
backlight: add devm_backlight_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)
commitbdb7583a1f2453b8e8c3146a97e7a515531829b6
treedfe2b6b0957ae68b98be85eb3658247b55e34cc2
parentd1b060e0285ff7d1e1eaddfc0f493f96a64de8be
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