]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/video: fsl-diu-fb: remove broken reference count enabling the display
authorTimur Tabi <timur@freescale.com>
Mon, 19 Dec 2011 22:26:16 +0000 (16:26 -0600)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Tue, 3 Jan 2012 15:59:08 +0000 (15:59 +0000)
commitdf55d77cf3afe5c1942475b081d9279673f8a6f5
tree99c4107c132c8e652982bdaaf1808b2df0158728
parent2c2e92319aa794fd2f48ca6e7c5a9c0d1975d77d
drivers/video: fsl-diu-fb: remove broken reference count enabling the display

The functions enable_lcdc() and disable_lcdc() used the variable fb_enable
to keep a reference count of when the display is enabled, but the code is
broken.  The display is always disabled when disable_lcdc(), and it is
always enabled when enable_lcdc() is called, regardless of the value of
fb_enable.  Obviously, we don't need to keep a reference count, so just
remove the variable.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
drivers/video/fsl-diu-fb.c