diff options
author | Arnd Bergmann <arnd@arndb.de> | 2014-01-14 14:44:09 +0400 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2014-01-29 23:23:22 +0400 |
commit | 0e4b949e6620689b1d3142e20bca2c9d1f918fda (patch) | |
tree | 90aa8eada5e819852c0d6be12be7cf25c6615e57 /lib/crc-itu-t.c | |
parent | c044dc2132d19d8c643cdd340f21afcec177c046 (diff) | |
download | linux-0e4b949e6620689b1d3142e20bca2c9d1f918fda.tar.xz |
can: flexcan: fix flexcan driver build for big endian on ARM and little endian on PowerPc
There is no reason to disallow building the driver on big-endian ARM kernels.
Furthermore, the current behavior is actually broken on little-endian PowerPC
as well.
The choice of register accessor functions must purely depend on the CPU
architecture, not which endianess the CPU is running on. Note that we nowadays
allow both big-endian ARM and little-endian PowerPC kernels.
With this patch applied, we will do the right thing in all four combinations.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'lib/crc-itu-t.c')
0 files changed, 0 insertions, 0 deletions