commit | e73b49ebd9deeb0ff2cd9ac6fd9c72a433d1e062 | [log] [tgz] |
---|---|---|
author | Bhadram Varka <vbhadram@nvidia.com> | Thu Nov 02 12:52:13 2017 +0530 |
committer | David S. Miller <davem@davemloft.net> | Fri Nov 03 14:15:06 2017 +0900 |
tree | 5aa5da74e4cc208dd7136dce59cebe288e04850b | |
parent | 2f2b1ae24ce69c7cb03f80a2b77dfd3f9d164626 [diff] |
stmmac: use of_property_read_u32 instead of read_u8 Numbers in DT are stored in “cells” which are 32-bits in size. of_property_read_u8 does not work properly because of endianness problem. This causes it to always return 0 with little-endian architectures. Fix it by using of_property_read_u32() OF API. Signed-off-by: Bhadram Varka <vbhadram@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>