]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitd397e916f313441d0c6b37df4b296c1dcc6aa202
tree99c4107c132c8e652982bdaaf1808b2df0158728
parent934dbeebed7764de683f8048cd94973d47c57f7b
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