hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/pci/controller/dwc/pci-imx6.c
....@@ -1272,6 +1272,13 @@
12721272 static int __init imx6_pcie_init(void)
12731273 {
12741274 #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
+
12751282 /*
12761283 * Since probe() can be deferred we need to make sure that
12771284 * hook_fault_code is not called after __init memory is freed