From: Russell King Date: Sun, 20 Apr 2008 16:15:32 +0000 (+0100) Subject: [ARM] pxa: corgibl_limit_intensity build errors X-Git-Tag: v2.6.27-rc1~1095^2^2~7^3~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02a8e76979f9b439642e67955edb865c112926f6;p=pandora-kernel.git [ARM] pxa: corgibl_limit_intensity build errors If CONFIG_BACKLIGHT_CORGI is not selected, then corgibl_limit_intensity() is not present. However, both corgi_pm.c and sharp_pm.c reference this symbol, resulting in a link error. Wrap the references with the relevant ifdefs, and avoid the resulting NULL pointer dereference by making the code in sharpsl_pm.c also conditional on the config symbol. Signed-off-by: Russell King --- Reading git-diff-tree failed