ARM: pxa: fix building error by palm27x_lcd_init() when FB_PXA not defined
authorEric Miao <eric.y.miao@gmail.com>
Sun, 11 Sep 2011 08:56:58 +0000 (16:56 +0800)
committerEric Miao <eric.y.miao@gmail.com>
Fri, 7 Oct 2011 04:21:19 +0000 (12:21 +0800)
Cc: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
arch/arm/mach-pxa/include/mach/palm27x.h

index 0a5e5eadebf5a91f5bae443137536dc984b9784a..f80bbe246afe5812b17db200d709b13f6160f72c 100644 (file)
@@ -34,7 +34,7 @@ extern struct pxafb_mode_info palm_320x320_new_lcd_mode;
 extern void __init palm27x_lcd_init(int power,
                                        struct pxafb_mode_info *mode);
 #else
-static inline void palm27x_lcd_init(int power, struct pxafb_mode_info *mode) {}
+#define palm27x_lcd_init(power, mode)  do {} while (0)
 #endif
 
 #if    defined(CONFIG_USB_GADGET_PXA27X) || \