diff options
| author | Guenter Roeck <linux@roeck-us.net> | 2014-01-06 08:21:03 -0500 |
|---|---|---|
| committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2014-01-11 13:43:25 -0500 |
| commit | 40d451181a7fa57e32bca4632ae7b22f80861a73 (patch) | |
| tree | c8f5d0ec05a6866311b6d922279b657cbe2e28c1 | |
| parent | 2dcb90ef4f89a871f6ee816ff30f7eb0037ada74 (diff) | |
can: Disable flexcan driver build for big endian CPU on ARM
Building arm:allmodconfig fails with
flexcan.c: In function 'flexcan_read':
flexcan.c:243:2: error: implicit declaration of function 'in_be32'
flexcan.c: In function 'flexcan_write':
flexcan.c:248:2: error: implicit declaration of function 'out_be32'
in_be32 and out_be32 do not (or no longer) exist for ARM targets.
Disable the build for ARM on big endian CPUs.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
| -rw-r--r-- | drivers/net/can/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/Kconfig b/drivers/net/can/Kconfig index 9e7d95dae2c7..d447b881bbde 100644 --- a/drivers/net/can/Kconfig +++ b/drivers/net/can/Kconfig | |||
| @@ -104,7 +104,7 @@ config CAN_JANZ_ICAN3 | |||
| 104 | 104 | ||
| 105 | config CAN_FLEXCAN | 105 | config CAN_FLEXCAN |
| 106 | tristate "Support for Freescale FLEXCAN based chips" | 106 | tristate "Support for Freescale FLEXCAN based chips" |
| 107 | depends on ARM || PPC | 107 | depends on (ARM && CPU_LITTLE_ENDIAN) || PPC |
| 108 | ---help--- | 108 | ---help--- |
| 109 | Say Y here if you want to support for Freescale FlexCAN. | 109 | Say Y here if you want to support for Freescale FlexCAN. |
| 110 | 110 | ||
