]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
backlight: add devm_backlight_device_{register,unregister}()
authorJingoo Han <jg1.han@samsung.com>
Wed, 3 Jul 2013 22:05:13 +0000 (15:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:07:43 +0000 (16:07 -0700)
commit8318fde4ac78f6793b1cbaf57659902253a61617
tree7b7a30f1bdcd75972b8efba43fece1d48f19d611
parent9ed3936fd7e918bfea565f51aa4379967009d7dd
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/backlight/backlight.c
include/linux/backlight.h