|
@@ -1357,9 +1357,9 @@ struct vio_dev *vio_register_device_node(struct device_node *of_node)
|
|
*/
|
|
*/
|
|
parent_node = of_get_parent(of_node);
|
|
parent_node = of_get_parent(of_node);
|
|
if (parent_node) {
|
|
if (parent_node) {
|
|
- if (!strcmp(parent_node->full_name, "/ibm,platform-facilities"))
|
|
|
|
|
|
+ if (!strcmp(parent_node->type, "ibm,platform-facilities"))
|
|
family = PFO;
|
|
family = PFO;
|
|
- else if (!strcmp(parent_node->full_name, "/vdevice"))
|
|
|
|
|
|
+ else if (!strcmp(parent_node->type, "vdevice"))
|
|
family = VDEVICE;
|
|
family = VDEVICE;
|
|
else {
|
|
else {
|
|
pr_warn("%s: parent(%s) of %s not recognized.\n",
|
|
pr_warn("%s: parent(%s) of %s not recognized.\n",
|