[ARM] pxa: corgibl_limit_intensity build errors
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Sun, 20 Apr 2008 16:15:32 +0000 (17:15 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 19 May 2008 15:25:57 +0000 (16:25 +0100)
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 <rmk+kernel@arm.linux.org.uk>

No differences found