spi: Use of_property_read_u32
authorTrent Piepho <tpiepho@gmail.com>
Fri, 27 Sep 2013 12:37:25 +0000 (05:37 -0700)
committerMark Brown <broonie@linaro.org>
Fri, 27 Sep 2013 13:53:59 +0000 (14:53 +0100)
Instead of getting the raw property, checking the length, and doing
endian conversion each time, use the OF function
of_property_read_u32() that does all that.

Error messages are slightly improved with error codes from
of_property_read_u32() for different ways the property may be invalid
(missing, too short, etc.)

Signed-off-by: Trent Piepho <tpiepho@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>

No differences found