]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/video/backlight/l4f00242t03.c: prevent unbalanced calls to regulator enable...
authorAlberto Panizzo <maramaopercheseimorto@gmail.com>
Thu, 13 Jan 2011 00:59:23 +0000 (16:59 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 13 Jan 2011 16:03:06 +0000 (08:03 -0800)
commit8b7c24fc9c58a569220873c73ca27510fc6179bc
tree16c3b5823fd0a76d8c089eb90b345e6bc4b1c65b
parent3dbceda25857124a26a8b3b3d5f261214828d15c
drivers/video/backlight/l4f00242t03.c: prevent unbalanced calls to regulator enable/disable

Otherwise a double call to:
$ echo 4 > /sys/class/lcd/l4f00242t03/lcd_power
Will, the first power down the lcd and regulators correctly and the
second produce an unbalanced call to regulator disable.

Signed-off-by: Alberto Panizzo <maramaopercheseimorto@gmail.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/backlight/l4f00242t03.c