]> 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>
Thu, 25 Apr 2013 19:51:09 +0000 (12:51 -0700)
commit3f78a9f022c9bc045a6d2cc864a1d77ad3c3f784
tree6644748c8a042f005865d774d7aaf8f575bab40d
parentb15bae9faecfb714cbf0c4585cd46b32d0a40e5a
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