ARM: pxa: make pxafb_smart_*() empty when not enabled
authorEric Miao <eric.y.miao@gmail.com>
Sat, 8 Oct 2011 10:19:23 +0000 (18:19 +0800)
committerEric Miao <eric.y.miao@gmail.com>
Sat, 8 Oct 2011 13:03:04 +0000 (21:03 +0800)
Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
arch/arm/mach-pxa/include/mach/pxafb.h
drivers/video/pxafb.c

index 01a45ac48114ed328647500d5f5e62d01ed2bc38..486b4c519ae2d6ef3afdb2eeb9d2cab212ced2ee 100644 (file)
@@ -158,5 +158,18 @@ struct pxafb_mach_info {
 void pxa_set_fb_info(struct device *, struct pxafb_mach_info *);
 unsigned long pxafb_get_hsync_time(struct device *dev);
 
+#ifdef CONFIG_FB_PXA_SMARTPANEL
 extern int pxafb_smart_queue(struct fb_info *info, uint16_t *cmds, int);
 extern int pxafb_smart_flush(struct fb_info *info);
+#else
+static inline int pxafb_smart_queue(struct fb_info *info,
+                                   uint16_t *cmds, int n)
+{
+       return 0;
+}
+
+static inline int pxafb_smart_flush(struct fb_info *info)
+{
+       return 0;
+}
+#endif
index 0f4e8c942f9e082e7410de7983ac28f81576c5f3..389530bf1adab886090cb33cbf6bcacf3305bcb3 100644 (file)
@@ -1309,16 +1309,6 @@ static int pxafb_smart_init(struct pxafb_info *fbi)
        return 0;
 }
 #else
-int pxafb_smart_queue(struct fb_info *info, uint16_t *cmds, int n_cmds)
-{
-       return 0;
-}
-
-int pxafb_smart_flush(struct fb_info *info)
-{
-       return 0;
-}
-
 static inline int pxafb_smart_init(struct pxafb_info *fbi) { return 0; }
 #endif /* CONFIG_FB_PXA_SMARTPANEL */
 
This page took 0.027194 seconds and 5 git commands to generate.