|
@@ -73,10 +73,9 @@ static int nfcmrvl_uart_parse_dt(struct device_node *node,
|
|
|
struct device_node *matched_node;
|
|
|
int ret;
|
|
|
|
|
|
- matched_node = of_find_compatible_node(node, NULL, "marvell,nfc-uart");
|
|
|
+ matched_node = of_get_compatible_child(node, "marvell,nfc-uart");
|
|
|
if (!matched_node) {
|
|
|
- matched_node = of_find_compatible_node(node, NULL,
|
|
|
- "mrvl,nfc-uart");
|
|
|
+ matched_node = of_get_compatible_child(node, "mrvl,nfc-uart");
|
|
|
if (!matched_node)
|
|
|
return -ENODEV;
|
|
|
}
|