Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/dist/drm/i915/display i915: Use pci_ge...



details:   https://anonhg.NetBSD.org/src/rev/347dc8a4f9a8
branches:  trunk
changeset: 362436:347dc8a4f9a8
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Feb 27 14:19:35 2022 +0000

description:
i915: Use pci_get_segment, not 0.

diffstat:

 sys/external/bsd/drm2/dist/drm/i915/display/intel_acpi.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 498adb561195 -r 347dc8a4f9a8 sys/external/bsd/drm2/dist/drm/i915/display/intel_acpi.c
--- a/sys/external/bsd/drm2/dist/drm/i915/display/intel_acpi.c  Sun Feb 27 14:19:20 2022 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/display/intel_acpi.c  Sun Feb 27 14:19:35 2022 +0000
@@ -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 @@
                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;



Home | Main Index | Thread Index | Old Index