]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Apr 2013 04:23:47 +0000 (21:23 -0700)
commit55fe10a686c3a8bce7bddc149e4ebb12f5a18c25
tree53fd358d7cfc4152685d0b61f799c3d1817bd416
parent80d98a915c07e6de6c3a2c08dea843f441273081
can: sja1000: fix handling on dt properties on little endian systems

commit 0443de5fbf224abf41f688d8487b0c307dc5a4b4 upstream.

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.

Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/can/sja1000/sja1000_of_platform.c