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
resolved.

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

Signed-off-by: Werner Almesberger <[email protected]>

---

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);
+
+#ifdef CONFIG_MFD_GLAMO
 void glamo_lcm_reset(int level);
+#else
+#define glamo_lcm_reset(...) do {} while (0)
+#endif
 
 #endif

Reply via email to