powerpc/pseries/hvcserver: Fix endian issue in hvcs_get_partner_info
authorThomas Falcon <tlfalcon@linux.vnet.ibm.com>
Tue, 5 Aug 2014 21:42:39 +0000 (16:42 -0500)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 13 Aug 2014 05:14:04 +0000 (15:14 +1000)
commit587870e8650a0571e895cc879cd895c78c6391bf
tree19ab81bfde8f7d2165f19396262ae4bcf4ffe5ff
parenta71d64b4dc4067808549935583d984c7fc9ea647
powerpc/pseries/hvcserver: Fix endian issue in hvcs_get_partner_info

A buffer returned by H_VTERM_PARTNER_INFO contains device information
in big endian format, causing problems for little endian architectures.
This patch ensures that they are in cpu endian.

Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/hvcserver.c