|
@@ -588,11 +588,7 @@ struct qe_firmware_info *qe_get_firmware_info(void)
|
|
}
|
|
}
|
|
|
|
|
|
/* Find the 'firmware' child node */
|
|
/* Find the 'firmware' child node */
|
|
- for_each_child_of_node(qe, fw) {
|
|
|
|
- if (strcmp(fw->name, "firmware") == 0)
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ fw = of_get_child_by_name(qe, "firmware");
|
|
of_node_put(qe);
|
|
of_node_put(qe);
|
|
|
|
|
|
/* Did we find the 'firmware' node? */
|
|
/* Did we find the 'firmware' node? */
|