aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/hotplug/rpaphp_core.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/pci/hotplug/rpaphp_core.c b/drivers/pci/hotplug/rpaphp_core.c
index 71a2cb8baa4a..353da5b296ef 100644
--- a/drivers/pci/hotplug/rpaphp_core.c
+++ b/drivers/pci/hotplug/rpaphp_core.c
@@ -182,10 +182,10 @@ static int get_children_props(struct device_node *dn, const int **drc_indexes,
182{ 182{
183 const int *indexes, *names, *types, *domains; 183 const int *indexes, *names, *types, *domains;
184 184
185 indexes = get_property(dn, "ibm,drc-indexes", NULL); 185 indexes = of_get_property(dn, "ibm,drc-indexes", NULL);
186 names = get_property(dn, "ibm,drc-names", NULL); 186 names = of_get_property(dn, "ibm,drc-names", NULL);
187 types = get_property(dn, "ibm,drc-types", NULL); 187 types = of_get_property(dn, "ibm,drc-types", NULL);
188 domains = get_property(dn, "ibm,drc-power-domains", NULL); 188 domains = of_get_property(dn, "ibm,drc-power-domains", NULL);
189 189
190 if (!indexes || !names || !types || !domains) { 190 if (!indexes || !names || !types || !domains) {
191 /* Slot does not have dynamically-removable children */ 191 /* Slot does not have dynamically-removable children */
@@ -218,7 +218,7 @@ int rpaphp_get_drc_props(struct device_node *dn, int *drc_index,
218 char *name_tmp, *type_tmp; 218 char *name_tmp, *type_tmp;
219 int i, rc; 219 int i, rc;
220 220
221 my_index = get_property(dn, "ibm,my-drc-index", NULL); 221 my_index = of_get_property(dn, "ibm,my-drc-index", NULL);
222 if (!my_index) { 222 if (!my_index) {
223 /* Node isn't DLPAR/hotplug capable */ 223 /* Node isn't DLPAR/hotplug capable */
224 return -EINVAL; 224 return -EINVAL;