kernel/drivers/pci/controller/dwc/pci-imx6.c
.. .. @@ -1272,6 +1272,13 @@ 1272 1272 static int __init imx6_pcie_init(void) 1273 1273 { 1274 1274 #ifdef CONFIG_ARM 1275 + struct device_node *np;1276 +1277 + np = of_find_matching_node(NULL, imx6_pcie_of_match);1278 + if (!np)1279 + return -ENODEV;1280 + of_node_put(np);1281 +1275 1282 /* 1276 1283 * Since probe() can be deferred we need to make sure that 1277 1284 * hook_fault_code is not called after __init memory is freed