]> 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:19:54 +0000 (21:19 -0700)
commit4f969dd6ce2941f9ce917684a058af2d7f6c77e9
tree28ee747a52ccf87c02a939683c9e75c24b73cdf2
parent110360768eb74d67bac851b7c0209a923258a314
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