From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: To: Josh Boyer From: Benjamin Herrenschmidt Date: Mon, 08 Dec 2008 15:53:25 +1100 Subject: [PATCH] powerpc: Fix build of 4xx simple platforms without CONFIG_PCI Message-Id: <20081208045411.0CE03DDE0E@ozlabs.org> Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , The global ppc_pci_flags is not defined when CONFIG_PCI is not set, causing a link error Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/platforms/40x/ppc40x_simple.c | 2 ++ arch/powerpc/platforms/44x/ppc44x_simple.c | 2 ++ 2 files changed, 4 insertions(+) --- linux-work.orig/arch/powerpc/platforms/40x/ppc40x_simple.c 2008-12-08 15:51:49.000000000 +1100 +++ linux-work/arch/powerpc/platforms/40x/ppc40x_simple.c 2008-12-08 15:51:52.000000000 +1100 @@ -61,7 +61,9 @@ static int __init ppc40x_probe(void) for (i = 0; i < ARRAY_SIZE(board); i++) { if (of_flat_dt_is_compatible(root, board[i])) { +#ifdef CONFIG_PCI ppc_pci_flags = PPC_PCI_REASSIGN_ALL_RSRC; +#endif return 1; } } Index: linux-work/arch/powerpc/platforms/44x/ppc44x_simple.c =================================================================== --- linux-work.orig/arch/powerpc/platforms/44x/ppc44x_simple.c 2008-12-08 15:51:31.000000000 +1100 +++ linux-work/arch/powerpc/platforms/44x/ppc44x_simple.c 2008-12-08 15:51:39.000000000 +1100 @@ -70,7 +70,9 @@ static int __init ppc44x_probe(void) for (i = 0; i < ARRAY_SIZE(board); i++) { if (of_flat_dt_is_compatible(root, board[i])) { +#ifdef CONFIG_PCI ppc_pci_flags = PPC_PCI_REASSIGN_ALL_RSRC; +#endif return 1; } }