From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from tuxland.pl (xdsl-664.zgora.dialog.net.pl [81.168.226.152]) by ozlabs.org (Postfix) with ESMTP id 5688FDDDF5 for ; Mon, 30 Jul 2007 03:50:32 +1000 (EST) From: Mariusz Kozlowski To: paulus@samba.org, Andrew Morton , pavel@suse.cz, rjw@sisk.pl Subject: [PATCH] ppc: chipsfb.c build fix for CONFIG_PM Date: Sun, 29 Jul 2007 19:50:28 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Message-Id: <200707291950.30261.m.kozlowski@tuxland.pl> Cc: linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hello, This patch fixes the following build error on powerpc: CC drivers/video/chipsfb.o drivers/video/chipsfb.c: In function 'chipsfb_pci_suspend': drivers/video/chipsfb.c:461: error: 'PM_SUSPEND_MEM' undeclared (first use in this function) drivers/video/chipsfb.c:461: error: (Each undeclared identifier is reported only once drivers/video/chipsfb.c:461: error: for each function it appears in.) make[2]: *** [drivers/video/chipsfb.o] Blad 1 make[1]: *** [drivers/video] Blad 2 make: *** [drivers] Blad 2 Signed-off-by: Mariusz Kozlowski drivers/video/chipsfb.c | 12751 -> 12804 (+53 bytes) drivers/video/chipsfb.o | -> 112880 ( bytes) drivers/video/chipsfb.c | 5 +++++ 1 file changed, 5 insertions(+) --- linux-2.6.23-rc1-mm1-a/drivers/video/chipsfb.c 2007-07-26 13:07:41.000000000 +0200 +++ linux-2.6.23-rc1-mm1-b/drivers/video/chipsfb.c 2007-07-29 19:34:15.000000000 +0200 @@ -27,6 +27,11 @@ #include #include #include + +#ifdef CONFIG_PM +#include +#endif + #include #ifdef CONFIG_PMAC_BACKLIGHT