fix compile err when no select CONFIG_DISPLAY_SUPPORT
authoryxj <yxj@rock-chips.com>
Mon, 18 Mar 2013 09:21:48 +0000 (17:21 +0800)
committeryxj <yxj@rock-chips.com>
Mon, 18 Mar 2013 09:22:00 +0000 (17:22 +0800)
include/linux/rk_screen.h

index ad278d08685923442161aba284c8d6fdd3273896..84f538aa1b207eb3bda050558544a54e0c98e133 100644 (file)
@@ -194,6 +194,7 @@ struct rk29fb_info {
 
 #ifndef CONFIG_DISPLAY_SUPPORT
 static inline void set_lcd_info(struct rk29fb_screen *screen, struct rk29lcd_info *lcd_info) {}
+static inline size_t get_fb_size(void) { return 0;}
 #else
 extern void set_lcd_info(struct rk29fb_screen *screen, struct rk29lcd_info *lcd_info);
 extern size_t get_fb_size(void);