powerpc/pseries: Fix endian issues in memory hotplug
authorThomas Falcon <tlfalcon@linux.vnet.ibm.com>
Tue, 19 Aug 2014 20:44:57 +0000 (15:44 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 9 Sep 2014 00:37:00 +0000 (10:37 +1000)
commitc9ac408bc7329911237c25508f578fb2fa1c4235
tree3f73d5caffcddbe8c39f97aae3fff983bcc203f4
parent2ce7598c9a453e0acd0e07be7be3f5eb39608ebd
powerpc/pseries: Fix endian issues in memory hotplug

Values acquired from Open Firmware are in 32-bit big endian format
and need to be handled on little endian architectures.  This patch
ensures values are in cpu endian when hotplugging memory.

Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
arch/powerpc/platforms/pseries/hotplug-memory.c