Module Name:    src
Committed By:   riastradh
Date:           Sun Feb 27 14:19:35 UTC 2022

Modified Files:
        src/sys/external/bsd/drm2/dist/drm/i915/display: intel_acpi.c

Log Message:
i915: Use pci_get_segment, not 0.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 \
    src/sys/external/bsd/drm2/dist/drm/i915/display/intel_acpi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/external/bsd/drm2/dist/drm/i915/display/intel_acpi.c
diff -u src/sys/external/bsd/drm2/dist/drm/i915/display/intel_acpi.c:1.4 src/sys/external/bsd/drm2/dist/drm/i915/display/intel_acpi.c:1.5
--- src/sys/external/bsd/drm2/dist/drm/i915/display/intel_acpi.c:1.4	Sun Dec 19 11:38:03 2021
+++ src/sys/external/bsd/drm2/dist/drm/i915/display/intel_acpi.c	Sun Feb 27 14:19:35 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: intel_acpi.c,v 1.4 2021/12/19 11:38:03 riastradh Exp $	*/
+/*	$NetBSD: intel_acpi.c,v 1.5 2022/02/27 14:19:35 riastradh Exp $	*/
 
 // SPDX-License-Identifier: GPL-2.0
 /*
@@ -8,7 +8,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intel_acpi.c,v 1.4 2021/12/19 11:38:03 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intel_acpi.c,v 1.5 2022/02/27 14:19:35 riastradh Exp $");
 
 #include <linux/pci.h>
 #include <linux/acpi.h>
@@ -268,8 +268,9 @@ intel_dsm_vga_match(const struct pci_att
 		return 0;
 
 	vga_count++;
-	struct acpi_devnode *node = acpi_pcidev_find(0 /*XXX segment*/,
-	    pa->pa_bus, pa->pa_device, pa->pa_function);
+	struct acpi_devnode *node =
+	    acpi_pcidev_find(pci_get_segment(pa->pa_pc),
+		pa->pa_bus, pa->pa_device, pa->pa_function);
 	if (node != NULL && intel_dsm_handle == NULL)
 		intel_dsm_handle = intel_dsm_pci_probe(node->ad_handle);
 	return 0;

Reply via email to