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)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 4 Jul 2012 04:44:32 +0000 (05:44 +0100)
commita7a3681651e007451b164e93699b349ba64496d3
treed096f860b82cf205d8c660bb6f931c1a3d2ad289
parent91bdefe9f3accde9507907a42fd8200712639a7f
can: flexcan: use be32_to_cpup to handle the value of dt entry

commit 85f2f834e85517307f13e30e630a5fc86f757cb5 upstream.

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: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Hui Wang <jason77.wang@gmail.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/net/can/flexcan.c