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/linux drm: Deconditionalize pci_get_se...



details:   https://anonhg.NetBSD.org/src/rev/498adb561195
branches:  trunk
changeset: 362435:498adb561195
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Feb 27 14:19:20 2022 +0000

description:
drm: Deconditionalize pci_get_segment.

diffstat:

 sys/external/bsd/drm2/linux/linux_pci.c |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (30 lines):

diff -r 0b5384bec309 -r 498adb561195 sys/external/bsd/drm2/linux/linux_pci.c
--- a/sys/external/bsd/drm2/linux/linux_pci.c   Sun Feb 27 14:19:07 2022 +0000
+++ b/sys/external/bsd/drm2/linux/linux_pci.c   Sun Feb 27 14:19:20 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_pci.c,v 1.20 2021/12/19 12:00:16 riastradh Exp $ */
+/*     $NetBSD: linux_pci.c,v 1.21 2022/02/27 14:19:20 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_pci.c,v 1.20 2021/12/19 12:00:16 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_pci.c,v 1.21 2022/02/27 14:19:20 riastradh Exp $");
 
 #if NACPICA > 0
 #include <dev/acpi/acpivar.h>
@@ -88,11 +88,7 @@
        pdev->pd_rom_vaddr = NULL;
        pdev->pd_dev = dev;
 #if (NACPICA > 0)
-#ifdef __HAVE_PCI_GET_SEGMENT
        const int seg = pci_get_segment(pa->pa_pc);
-#else
-       const int seg = 0;
-#endif
        pdev->pd_ad = acpi_pcidev_find(seg, pa->pa_bus,
            pa->pa_device, pa->pa_function);
 #else



Home | Main Index | Thread Index | Old Index