Subject: [PATCH -next] x86: olpc-xo1 uses/depends on PCI

From: Randy Dunlap <[email-masked]>
Date: Thu, 14 Oct 2010 10:13:13 -0700

From: Randy Dunlap <[email-masked]>

olpc-xo1 uses pci_*() interfaces so it should depend on PCI.

arch/x86/kernel/olpc-xo1.c:65: error: implicit declaration of function 'pci_enable_device_io'
arch/x86/kernel/olpc-xo1.c:71: error: implicit declaration of function 'pci_request_region'
arch/x86/kernel/olpc-xo1.c:80: error: implicit declaration of function 'pci_release_region'

Signed-off-by: Randy Dunlap <[email-masked]>
Cc: Daniel Drake <[email-masked]>
---
 arch/x86/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-next-20101014.orig/arch/x86/Kconfig
+++ linux-next-20101014/arch/x86/Kconfig
@@ -2018,7 +2018,7 @@ config OLPC
 
 config OLPC_XO1
 	tristate "OLPC XO-1 support"
-	depends on OLPC
+	depends on OLPC && PCI
 	---help---
 	  Add support for non-essential features of the OLPC XO-1 laptop.