USB: isp1760: Fix endianness-sensitivity in of_isp1760_probe()
authorDave Martin <dave.martin@linaro.org>
Fri, 2 Dec 2011 16:58:18 +0000 (16:58 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 10 Dec 2011 00:18:18 +0000 (16:18 -0800)
commit8ad028bd973ec1ead4982e21ab0400c956aff4b5
treef0dcf9ff3aa668698f794bb29b6a3733ac5a218b
parent7fb57a019f94ea0c1290c39b8da753be155af41c
USB: isp1760: Fix endianness-sensitivity in of_isp1760_probe()

Data read direct from device tree properties will be in the device
tree's native endianness (i.e., big-endian).

This patch uses of_property_read_u32() to read the bus-width
property in host byte order instead.

Signed-off-by: Dave Martin <dave.martin@linaro.org>
Acked-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/isp1760-if.c