can: sja1000: fix handling on dt properties on little endian systems
authorChristoph Fritz <chf.fritz@googlemail.com>
Thu, 11 Apr 2013 19:32:57 +0000 (21:32 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 12 Apr 2013 11:03:01 +0000 (13:03 +0200)
commit0443de5fbf224abf41f688d8487b0c307dc5a4b4
tree0c5cd166151bb41ba895e981ada213c728beb697
parentdb388d6460ffa53b3b38429da6f70a913f89b048
can: sja1000: fix handling on dt properties on little endian systems

To get correct endianes on little endian cpus (like arm) while reading device
tree properties, this patch replaces of_get_property() with
of_property_read_u32(). While there use of_property_read_bool() for the
handling of the boolean "nxp,no-comparator-bypass" property.

Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/sja1000/sja1000_of_platform.c