]> git.baikalelectronics.ru Git - kernel.git/commit
lcd: add devm_lcd_device_{register,unregister}()
authorJingoo Han <jg1.han@samsung.com>
Wed, 3 Jul 2013 22:05:14 +0000 (15:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:07:43 +0000 (16:07 -0700)
commit73d9014bc0cd6b48c928a00436adc586db6c3429
tree0b3531877c44659181ae17098ee581f09833f40e
parentb6461273327c878ee67e06041a2b5bbaba5b1d63
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/backlight/lcd.c
include/linux/lcd.h