diff options
| author | David S. Miller <[email protected]> | 2014-01-31 00:48:17 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2014-01-31 00:48:17 +0000 |
| commit | 65b80cae7a72e94df9335552e1a77a3a8946566c (patch) | |
| tree | 28617224603f1e162a2cb6014c1dd3cc027c251a /drivers/net/can/flexcan.c | |
| parent | e100: Fix "disabling already-disabled device" warning (diff) | |
| parent | can: janz-ican3: fix uninitialized variable warnings (diff) | |
| download | kernel-65b80cae7a72e94df9335552e1a77a3a8946566c.tar.gz kernel-65b80cae7a72e94df9335552e1a77a3a8946566c.zip | |
Merge tag 'linux-can-fixes-for-3.14-20140129' of git://gitorious.org/linux-can/linux-can
linux-can-fixes-for-3.14-20140129
Marc Kleine-Budde says:
====================
Arnd Bergmann provides a fix for the flexcan driver, enabling compilation on
all combinations of big and little endian on ARM and PowerPc. A patch by Ira W.
Snyder fixes uninitialized variable warnings in the janz-ican3 driver.
Rostislav Lisovy contributes a patch to propagate the SO_PRIORITY of raw
sockets to skbs.
====================
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/can/flexcan.c')
| -rw-r--r-- | drivers/net/can/flexcan.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/can/flexcan.c b/drivers/net/can/flexcan.c index aaed97bee471..320bef2dba42 100644 --- a/drivers/net/can/flexcan.c +++ b/drivers/net/can/flexcan.c @@ -235,9 +235,12 @@ static const struct can_bittiming_const flexcan_bittiming_const = { }; /* - * Abstract off the read/write for arm versus ppc. + * Abstract off the read/write for arm versus ppc. This + * assumes that PPC uses big-endian registers and everything + * else uses little-endian registers, independent of CPU + * endianess. */ -#if defined(__BIG_ENDIAN) +#if defined(CONFIG_PPC) static inline u32 flexcan_read(void __iomem *addr) { return in_be32(addr); |
