video: s3c-fb: fix virtual resolution checking
authorJingoo Han <jg1.han@samsung.com>
Thu, 9 Jun 2011 04:26:38 +0000 (04:26 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 9 Jun 2011 05:59:52 +0000 (14:59 +0900)
commit13e6af8886f3225fb9141dc3b6915d84bd4ad4de
treefb0b1bbd96741f068221f111fe121f365794e03b
parent72ba4cb608e7937792f3d61349ef616bbffda832
video: s3c-fb: fix virtual resolution checking

This patch fixes mishandling in virtual resolution checking.
Previously, virtual resolution is changed to virtual_x and virtual_y
which mean the size for buffer allocation, when s3c_fb_check_var is
called by fb_check_var. However, it is meaningless, since virtual_x
and virtual_y are fixed and user cannot change virtual resolution.
Therefore, virtual resolution should be more than resolution
such as xres and yres.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/video/s3c-fb.c