From: Randy Dunlap Date: Mon, 25 Oct 2010 23:47:36 +0000 (-0700) Subject: pch_can: depends on PCI X-Git-Tag: firefly_0821_release~7613^2~3442^2~159 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=10d8c4638c5a797baad5846a3447c0ccca8986a3;p=firefly-linux-kernel-4.4.55.git pch_can: depends on PCI 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/can/Kconfig b/drivers/net/can/Kconfig index a0b02bce694c..080574b0fff0 100644 --- a/drivers/net/can/Kconfig +++ b/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.