[PATCH -next] pch_can: depends on PCI

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Randy Dunlap
Date: Monday, October 25, 2010 - 4:25 pm

From: Randy Dunlap <randy.dunlap@oracle.com>

Fix pch_can build when CONFIG_PCI is not enabled.  It uses pci interfaces
and data structures, so it should depend on PCI.

drivers/net/can/pch_can.c:1044: error: implicit declaration of function 'pci_enable_msi'
drivers/net/can/pch_can.c:1079: error: implicit declaration of function 'pci_disable_msi'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 drivers/net/can/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-next-20101025.orig/drivers/net/can/Kconfig
+++ linux-next-20101025/drivers/net/can/Kconfig
@@ -84,7 +84,7 @@ config CAN_FLEXCAN
 
 config PCH_CAN
 	tristate "PCH CAN"
-	depends on  CAN_DEV
+	depends on CAN_DEV && PCI
 	---help---
 	  This driver is for PCH CAN of Topcliff which is an IOH for x86
 	  embedded processor.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
linux-next: Tree for October 25, Stephen Rothwell, (Sun Oct 24, 8:58 pm)
Re: linux-next: Tree for October 25, Stephen Rothwell, (Sun Oct 24, 8:59 pm)
[PATCH -next] pch_can: depends on PCI, Randy Dunlap, (Mon Oct 25, 4:25 pm)
Re: linux-next: Tree for October 25 (coda), Randy Dunlap, (Mon Oct 25, 4:33 pm)
Re: [PATCH -next] pch_can: depends on PCI, David Miller, (Mon Oct 25, 4:47 pm)
Re: linux-next: Tree for October 25 (acpi/apei-related), Randy Dunlap, (Mon Oct 25, 4:51 pm)
Re: linux-next: Tree for October 25 (coda), Stephen Rothwell, (Mon Oct 25, 4:52 pm)
Re: linux-next: Tree for October 25 (acpi_video), Randy Dunlap, (Mon Oct 25, 4:57 pm)
Re: linux-next: Tree for October 25 (nouveau_pm), Randy Dunlap, (Mon Oct 25, 4:59 pm)
Re: linux-next: Tree for October 25 (netfilter/xt_socket), David Miller, (Mon Oct 25, 10:02 pm)