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 847936fe327e..899eed002748 100644 --- a/drivers/pci/hotplug/rpaphp_core.c +++ b/drivers/pci/hotplug/rpaphp_core.c | |||
@@ -170,10 +170,10 @@ static int get_children_props(struct device_node *dn, const int **drc_indexes, | |||
170 | { | 170 | { |
171 | const int *indexes, *names, *types, *domains; | 171 | const int *indexes, *names, *types, *domains; |
172 | 172 | ||
173 | indexes = get_property(dn, "ibm,drc-indexes", NULL); | 173 | indexes = of_get_property(dn, "ibm,drc-indexes", NULL); |
174 | names = get_property(dn, "ibm,drc-names", NULL); | 174 | names = of_get_property(dn, "ibm,drc-names", NULL); |
175 | types = get_property(dn, "ibm,drc-types", NULL); | 175 | types = of_get_property(dn, "ibm,drc-types", NULL); |
176 | domains = get_property(dn, "ibm,drc-power-domains", NULL); | 176 | domains = of_get_property(dn, "ibm,drc-power-domains", NULL); |
177 | 177 | ||
178 | if (!indexes || !names || !types || !domains) { | 178 | if (!indexes || !names || !types || !domains) { |
179 | /* Slot does not have dynamically-removable children */ | 179 | /* Slot does not have dynamically-removable children */ |
@@ -206,7 +206,7 @@ int rpaphp_get_drc_props(struct device_node *dn, int *drc_index, | |||
206 | char *name_tmp, *type_tmp; | 206 | char *name_tmp, *type_tmp; |
207 | int i, rc; | 207 | int i, rc; |
208 | 208 | ||
209 | my_index = get_property(dn, "ibm,my-drc-index", NULL); | 209 | my_index = of_get_property(dn, "ibm,my-drc-index", NULL); |
210 | if (!my_index) { | 210 | if (!my_index) { |
211 | /* Node isn't DLPAR/hotplug capable */ | 211 | /* Node isn't DLPAR/hotplug capable */ |
212 | return -EINVAL; | 212 | return -EINVAL; |