can: flexcan: use of_property_read_u32 to get DT entry value
authorHui Wang <jason77.wang@gmail.com>
Thu, 28 Jun 2012 08:21:34 +0000 (16:21 +0800)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 2 Jul 2012 09:08:37 +0000 (11:08 +0200)
commitafc016d8360ceb19a1f37bf6579d5850d47d582d
tree35f38cdf7e5567cb1c0bbc60d79e3b2ba9ab21b8
parent8b7b736fbfa1307fd294ca1fca69316f1b07a806
can: flexcan: use of_property_read_u32 to get DT entry value

of_property_read_u32() can auto handle endian problems, use this
function can make code clean and simple.

No need to check return value here since the following got value
check will handle this.

Cc: linux-can@vger.kernel.org
Cc: Marc Kleine-Budde <mkl@pengutronix.de>
Cc: Wolfgang Grandegger <wg@grandegger.com>
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