]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: pxafb: Fix access to nonexistent member of pxafb_info
authorMarek Vasut <marek.vasut@gmail.com>
Tue, 22 Mar 2011 12:09:50 +0000 (13:09 +0100)
committerEric Miao <eric.y.miao@gmail.com>
Tue, 12 Apr 2011 15:07:42 +0000 (23:07 +0800)
commit0bf57b3d6139e59d38b6fdddce9a05d377391f14
treecbfa219b9a73c490eb7a66e1947fe5d63af02a7f
parenta49ec2f89ef7d5107cf62938f259cf1ba29f99d3
ARM: pxafb: Fix access to nonexistent member of pxafb_info

In case CONFIG_FB_PXA_OVERLAY is not defined, the pxafb_freq_transition()
function tests nonexistent member of pxafb_info (since the member is not
part of the structure).

Fix this by wraping the test in ifdef, even if I don't really like how the code
looks now. The check doesn't have to happen if overlays are disabled at all as
the check is always true then.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Acked-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
drivers/video/pxafb.c