From: Cedric Le Goater Date: Wed, 30 Oct 2013 13:47:08 +0000 (+0100) Subject: powerpc/nvram: Fix endian issue when using the partition length X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~19^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c81095a465b2c1cd819fb14ee3cd07bc1b377af1;p=pandora-kernel.git powerpc/nvram: Fix endian issue when using the partition length When reading partitions, the length has to be translated from big endian to the endian order of the host. Similarly, when writing partitions, the length needs to be in big endian order. The userspace tool 'nvram' needs a similar fix as it is reading and writing partitions through /dev/nram : http://sourceforge.net/p/powerpc-utils/mailman/message/31571277/ Signed-off-by: Cedric Le Goater Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed