drivers/pci/hotplug: Use of_property_read_u32() in powernv driver
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Thu, 29 Sep 2016 05:52:04 +0000 (15:52 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 4 Oct 2016 05:22:47 +0000 (16:22 +1100)
commit39f0d6fbdc3f205d0c61a9c530c6827193cba64b
treecbf1b22a9ee3481743217e5a4af4438632f6c088
parent735840b44bcc998e2574faf63d1aaaf9b41f2827
drivers/pci/hotplug: Use of_property_read_u32() in powernv driver

This replaces of_get_property() with of_property_read_u32() or
of_property_read_string() so that we needn't consider the endian
issue, the returned value always is in CPU-endian.

Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
[mpe: Fold in the change to the "ibm,slot-surprise-pluggable" case]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/pci/hotplug/pnv_php.c