|
@@ -978,13 +978,10 @@ static int mvebu_pcie_probe(struct platform_device *pdev)
|
|
|
return -ENOMEM;
|
|
|
|
|
|
i = 0;
|
|
|
- for_each_child_of_node(pdev->dev.of_node, child) {
|
|
|
+ for_each_available_child_of_node(pdev->dev.of_node, child) {
|
|
|
struct mvebu_pcie_port *port = &pcie->ports[i];
|
|
|
enum of_gpio_flags flags;
|
|
|
|
|
|
- if (!of_device_is_available(child))
|
|
|
- continue;
|
|
|
-
|
|
|
port->pcie = pcie;
|
|
|
|
|
|
if (of_property_read_u32(child, "marvell,pcie-port",
|