]> git.baikalelectronics.ru Git - kernel.git/commit
s3c-fb: only init window colour key controls for windows with blending
authorBen Dooks <ben-linux@fluff.org>
Wed, 11 Aug 2010 01:02:32 +0000 (18:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Aug 2010 15:59:10 +0000 (08:59 -0700)
commit08370a92bbc4d49800273f8fa2363a8266996c16
tree8e0e7b78292aa08784dda53826817fc54b9c6b65
parent1c30cbb8267a729246e18ff125a7d7dd56b1f6a8
s3c-fb: only init window colour key controls for windows with blending

The driver clears all windows, but also sets the windows' colour key
controls at the same time.  However, the last window does not have these
registers as it is always blended into the previous window.

Move the colour key initialisation into the probe, and run it for only
nr_win-1 windows.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Pawel Osciak <p.osciak@samsung.com>
Cc: InKi Dae <inki.dae@samsung.com>
Cc: KyungMin Park <kyungmin.park.samsung.com>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/s3c-fb.c