[PATCH] Glamo: don't break kernel build if disabled

Werner Almesberger werner at openmoko.org
Tue Jan 20 21:23:16 CET 2009

If we disable CONFIG_MFD_GLAMO, a dependency on glamo_lcm_reset from
arch/arm/mach-s3c2440/mach-gta02.c:gta02_jbt6k74_reset cannot be

There are many ways to fix this - this one does it with a bit of a
swagger ;-)

Signed-off-by: Werner Almesberger <werner at openmoko.org>


diff --git a/include/linux/glamofb.h b/include/linux/glamofb.h
index b787a0c..507b67c 100644
--- a/include/linux/glamofb.h
+++ b/include/linux/glamofb.h
@@ -40,6 +40,11 @@ struct glamofb_platform_data {
 int glamofb_cmd_mode(struct glamofb_handle *gfb, int on);
 int glamofb_cmd_write(struct glamofb_handle *gfb, u_int16_t val);
 void glamo_lcm_reset(int level);
+#define glamo_lcm_reset(...) do {} while (0)

More information about the openmoko-kernel mailing list