From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757854Ab1K3MBe (ORCPT ); Wed, 30 Nov 2011 07:01:34 -0500 Received: from mail-gx0-f174.google.com ([209.85.161.174]:60164 "EHLO mail-gx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757724Ab1K3MBc (ORCPT ); Wed, 30 Nov 2011 07:01:32 -0500 Message-ID: <1322654481.11191.1.camel@phoenix> Subject: [PATCH] OMAP2, 3: DSS2: Include linux/delay.h and common.h to fix build errors From: Axel Lin To: linux-kernel@vger.kernel.org Cc: Tony Lindgren , Russell King , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Date: Wed, 30 Nov 2011 20:01:21 +0800 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.1- Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Include linux/delay.h to fix below build error: CC arch/arm/mach-omap2/display.o arch/arm/mach-omap2/display.c: In function 'dispc_disable_outputs': arch/arm/mach-omap2/display.c:283: error: implicit declaration of function 'mdelay' arch/arm/mach-omap2/display.c: In function 'omap_dss_reset': arch/arm/mach-omap2/display.c:317: error: implicit declaration of function 'omap_test_timeout' make[1]: *** [arch/arm/mach-omap2/display.o] Error 1 make: *** [arch/arm/mach-omap2] Error 2 Include common.h to fix below build error: CC arch/arm/mach-omap2/display.o arch/arm/mach-omap2/display.c: In function 'omap_dss_reset': arch/arm/mach-omap2/display.c:318: error: implicit declaration of function 'omap_test_timeout' make[1]: *** [arch/arm/mach-omap2/display.o] Error 1 make: *** [arch/arm/mach-omap2] Error 2 Signed-off-by: Axel Lin --- I got the build error on linux-next 20111130. This patch is against linux-next 20111130. Axel arch/arm/mach-omap2/display.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/display.c b/arch/arm/mach-omap2/display.c index dce9905..fe44cc2 100644 --- a/arch/arm/mach-omap2/display.c +++ b/arch/arm/mach-omap2/display.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include