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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Jul 2012 16:04:21 +0000 (09:04 -0700)
commit70f6c28e4621b4c7047e3d4b848fc0393a9789e3
tree3e6421693101c79774074b50b2bbfda7c287551a
parent8010204c43b1b1543b35972060a0dcaea2cce6fe
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/can/flexcan.c