From: Marek Vasut Date: Tue, 22 Mar 2011 12:09:50 +0000 (+0100) Subject: ARM: pxafb: Fix access to nonexistent member of pxafb_info X-Git-Tag: v2.6.39-rc4~20^2~4^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6d710fefd1b2c209353a452d0f4c831b3af0da0;p=pandora-kernel.git 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 Acked-by: Vasily Khoruzhick Signed-off-by: Eric Miao --- Reading git-diff-tree failed