From 1543e317f1da31b75942316931e8f491a8920811 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Thu, 04 Jan 2024 10:08:02 +0000
Subject: [PATCH] disable FB

---
 kernel/drivers/pci/controller/dwc/pci-imx6.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/kernel/drivers/pci/controller/dwc/pci-imx6.c b/kernel/drivers/pci/controller/dwc/pci-imx6.c
index ceb4815..8117f2d 100644
--- a/kernel/drivers/pci/controller/dwc/pci-imx6.c
+++ b/kernel/drivers/pci/controller/dwc/pci-imx6.c
@@ -1272,6 +1272,13 @@
 static int __init imx6_pcie_init(void)
 {
 #ifdef CONFIG_ARM
+	struct device_node *np;
+
+	np = of_find_matching_node(NULL, imx6_pcie_of_match);
+	if (!np)
+		return -ENODEV;
+	of_node_put(np);
+
 	/*
 	 * Since probe() can be deferred we need to make sure that
 	 * hook_fault_code is not called after __init memory is freed

--
Gitblit v1.6.2