]> git.baikalelectronics.ru Git - kernel.git/commit
can: flexcan: fix flexcan driver build for big endian on ARM and little endian on...
authorArnd Bergmann <arnd@arndb.de>
Tue, 14 Jan 2014 10:44:09 +0000 (11:44 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 29 Jan 2014 19:23:22 +0000 (20:23 +0100)
commit5932cdb730f90047842df57ba79c90d0fcd7917c
tree90aa8eada5e819852c0d6be12be7cf25c6615e57
parentef13bdb89ccd62a647020824cd82f166544e031d
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>
drivers/net/can/Kconfig
drivers/net/can/flexcan.c