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 pdev is ifdef'd out, so ...



details:   https://anonhg.NetBSD.org/src/rev/e217c2c3c83c
branches:  trunk
changeset: 1028556:e217c2c3c83c
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 11:19:09 2021 +0000

description:
pdev is ifdef'd out, so ifdef out the declaration too


Author: Maya Rashish <maya%NetBSD.org@localhost>
Committer: Taylor R Campbell <riastradh%NetBSD.org@localhost>

diffstat:

 sys/external/bsd/drm2/dist/drm/i915/i915_drv.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r e55b38dde1f3 -r e217c2c3c83c sys/external/bsd/drm2/dist/drm/i915/i915_drv.c
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_drv.c    Sun Dec 19 11:19:01 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_drv.c    Sun Dec 19 11:19:09 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i915_drv.c,v 1.37 2021/12/19 11:19:01 riastradh Exp $  */
+/*     $NetBSD: i915_drv.c,v 1.38 2021/12/19 11:19:09 riastradh Exp $  */
 
 /* i915_drv.c -- i830,i845,i855,i865,i915 driver -*- linux-c -*-
  */
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i915_drv.c,v 1.37 2021/12/19 11:19:01 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i915_drv.c,v 1.38 2021/12/19 11:19:09 riastradh Exp $");
 
 #include <linux/acpi.h>
 #include <linux/device.h>
@@ -1971,7 +1971,9 @@
 int i915_drm_resume_early(struct drm_device *dev)
 {
        struct drm_i915_private *dev_priv = to_i915(dev);
+#ifndef __NetBSD__
        struct pci_dev *pdev = dev_priv->drm.pdev;
+#endif
        int ret;
 
        /*



Home | Main Index | Thread Index | Old Index