From: Eric Miao Date: Sun, 11 Sep 2011 08:56:58 +0000 (+0800) Subject: ARM: pxa: fix building error by palm27x_lcd_init() when FB_PXA not defined X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e227e88ae46e921f608b056e27e1d8704b7d12fa;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ARM: pxa: fix building error by palm27x_lcd_init() when FB_PXA not defined Cc: Marek Vasut Signed-off-by: Eric Miao --- diff --git a/arch/arm/mach-pxa/include/mach/palm27x.h b/arch/arm/mach-pxa/include/mach/palm27x.h index 0a5e5eadebf5..f80bbe246afe 100644 --- a/arch/arm/mach-pxa/include/mach/palm27x.h +++ b/arch/arm/mach-pxa/include/mach/palm27x.h @@ -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) || \