]> git.baikalelectronics.ru Git - kernel.git/commit
can: flexcan: use be32_to_cpup to handle the value of dt entry
authorHui Wang <jason77.wang@gmail.com>
Wed, 27 Jun 2012 08:19:18 +0000 (16:19 +0800)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 27 Jun 2012 09:12:07 +0000 (11:12 +0200)
commit088f7c8d7ca8b14a6d844b35e8b016e85312588c
tree397706dd2e9e5d3189ab7d7756dd6f7b0e55eee0
parent934ffb6bdd7ca99b107fabfec521f70016848c30
can: flexcan: use be32_to_cpup to handle the value of dt entry

The freescale arm i.MX series platform can support this driver, and
usually the arm cpu works in the little endian mode by default, while
device tree entry value is stored in big endian format, we should use
be32_to_cpup() to handle them, after modification, it can work well
both on the le cpu and be cpu.

Cc: stable <stable@vger.kernel.org> # v3.2+
Cc: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Hui Wang <jason77.wang@gmail.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/flexcan.c