Module Name: src
Committed By: riastradh
Date: Sun Feb 27 14:19:20 UTC 2022
Modified Files:
src/sys/external/bsd/drm2/linux: linux_pci.c
Log Message:
drm: Deconditionalize pci_get_segment.
To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/external/bsd/drm2/linux/linux_pci.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/linux/linux_pci.c
diff -u src/sys/external/bsd/drm2/linux/linux_pci.c:1.20 src/sys/external/bsd/drm2/linux/linux_pci.c:1.21
--- src/sys/external/bsd/drm2/linux/linux_pci.c:1.20 Sun Dec 19 12:00:16 2021
+++ src/sys/external/bsd/drm2/linux/linux_pci.c Sun Feb 27 14:19:20 2022
@@ -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 @@ linux_pci_dev_init(struct pci_dev *pdev,
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