Skip to contentSkip to conversation

can: at91_can: Fix Kconfig dependencies

PATCH New Jean Delvare 1 participant 1 message May 6, 2014 CAN network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 can: at91_can: Fix Kconfig dependencies

The at91_can driver is AT91-specific so it should depend on ARCH_AT91 rather than just ARM. Add COMPILE_TEST as an alternative, so that the driver can still be build-tested elsewhere.

Cc Wolfgang Grandegger <[email protected]>
Cc Marc Kleine-Budde <[email protected]>

---
Note: the COMPILE_TEST might need additional dependencies, I'm not sure... Builds fine on x86_64.

 drivers/net/can/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/can/Kconfig +1 -1
@@ -65,7 +65,7 @@ config CAN_LEDS
 
 config CAN_AT91
 	tristate "Atmel AT91 onchip CAN controller"
-	depends on ARM
+	depends on ARCH_AT91 || COMPILE_TEST
 	---help---
 	  This is a driver for the SoC CAN controller in Atmel's AT91SAM9263
 	  and AT91SAM9X5 processors.
Signature · 2 lines
Jean Delvare
SUSE L3 Support