diff options
Diffstat (limited to 'drivers/of/platform.c')
-rw-r--r-- | drivers/of/platform.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/of/platform.c b/drivers/of/platform.c index f79f40b516c6..033a224a9fda 100644 --- a/drivers/of/platform.c +++ b/drivers/of/platform.c | |||
@@ -701,9 +701,7 @@ int of_platform_bus_probe(struct device_node *root, | |||
701 | struct platform_device *dev; | 701 | struct platform_device *dev; |
702 | int rc = 0; | 702 | int rc = 0; |
703 | 703 | ||
704 | if (matches == NULL) | 704 | if (WARN_ON(!matches || matches == OF_NO_DEEP_PROBE)) |
705 | matches = of_default_bus_ids; | ||
706 | if (matches == OF_NO_DEEP_PROBE) | ||
707 | return -EINVAL; | 705 | return -EINVAL; |
708 | if (root == NULL) | 706 | if (root == NULL) |
709 | root = of_find_node_by_path("/"); | 707 | root = of_find_node_by_path("/"); |