rtas_errd: Fix PRRN Event handling on LE
rtas_errd: Fix PRRN Event handling on LE

Fixes for PRRN event handling on LE systems

1) Convert the number of properties to host endian in i
   update_properties().
2) Use phandle in host endian while issuing an ofdt command,
   since we pass the phandle as a numeric string to the kernel.

With this patch the PRRN event handling works fine, however,
drmgr needs to support LE systems for a seemless operation of
the rtas_errd, since we depend on drmgr

Signed-off-by: Suzuki K. Poulose <2d5cd350c7a48263c670a6374c5c55bca8d1a68a@in.ibm.com>
Acked-by: Nathan Fontenot <4b7bfe500077bf77c5456931a34b0b70e36e0bc6@linux.vnet.ibm.com>
Signed-off-by: Vasant Hegde <a6d753843573f7bfed5075c1e875b0be8007a0ab@linux.vnet.ibm.com>

leitao/ppc64-diag,leitao/ppc64-diag,leitao/ppc64-diag,leitao/ppc64-diag