diff options
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/hotplug/rpaphp_core.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/pci/hotplug/rpaphp_core.c b/drivers/pci/hotplug/rpaphp_core.c index 6e3118733508..458c08ef2654 100644 --- a/drivers/pci/hotplug/rpaphp_core.c +++ b/drivers/pci/hotplug/rpaphp_core.c | |||
@@ -169,10 +169,10 @@ static int get_children_props(struct device_node *dn, const int **drc_indexes, | |||
169 | { | 169 | { |
170 | const int *indexes, *names, *types, *domains; | 170 | const int *indexes, *names, *types, *domains; |
171 | 171 | ||
172 | indexes = get_property(dn, "ibm,drc-indexes", NULL); | 172 | indexes = of_get_property(dn, "ibm,drc-indexes", NULL); |
173 | names = get_property(dn, "ibm,drc-names", NULL); | 173 | names = of_get_property(dn, "ibm,drc-names", NULL); |
174 | types = get_property(dn, "ibm,drc-types", NULL); | 174 | types = of_get_property(dn, "ibm,drc-types", NULL); |
175 | domains = get_property(dn, "ibm,drc-power-domains", NULL); | 175 | domains = of_get_property(dn, "ibm,drc-power-domains", NULL); |
176 | 176 | ||
177 | if (!indexes || !names || !types || !domains) { | 177 | if (!indexes || !names || !types || !domains) { |
178 | /* Slot does not have dynamically-removable children */ | 178 | /* Slot does not have dynamically-removable children */ |
@@ -205,7 +205,7 @@ int rpaphp_get_drc_props(struct device_node *dn, int *drc_index, | |||
205 | char *name_tmp, *type_tmp; | 205 | char *name_tmp, *type_tmp; |
206 | int i, rc; | 206 | int i, rc; |
207 | 207 | ||
208 | my_index = get_property(dn, "ibm,my-drc-index", NULL); | 208 | my_index = of_get_property(dn, "ibm,my-drc-index", NULL); |
209 | if (!my_index) { | 209 | if (!my_index) { |
210 | /* Node isn't DLPAR/hotplug capable */ | 210 | /* Node isn't DLPAR/hotplug capable */ |
211 | return -EINVAL; | 211 | return -EINVAL; |