spapr_pci: drop redundant args in spapr_[populate, create]_pci_child_dt
commite634b89c6ed2309814de7a89bd7c5ced96f59291
authorNikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Thu, 2 Jul 2015 06:23:23 +0000 (2 16:23 +1000)
committerAlexander Graf <agraf@suse.de>
Tue, 7 Jul 2015 15:44:53 +0000 (7 17:44 +0200)
tree823725f0f19c32d5ef3bacef55c30c9ba6e5259b
parent16b0ea1d852873cf17630133d86df6a68e23f38c
spapr_pci: drop redundant args in spapr_[populate, create]_pci_child_dt

* phb_index is not being used and if required can be obtained from sphb
* use helper to get drc_index in spapr_populate_pci_child_dt()
* Check if drc_index is zero

Suggested-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppc/spapr_pci.c