forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/gpu/drm/nouveau/nouveau_acpi.c
....@@ -220,6 +220,9 @@
220220 int optimus_funcs;
221221 struct pci_dev *parent_pdev;
222222
223
+ if (pdev->vendor != PCI_VENDOR_ID_NVIDIA)
224
+ return;
225
+
223226 *has_pr3 = false;
224227 parent_pdev = pci_upstream_bridge(pdev);
225228 if (parent_pdev) {