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/include/linux For the kludges we don't...



details:   https://anonhg.NetBSD.org/src/rev/d6aed7d2fae2
branches:  trunk
changeset: 835246:d6aed7d2fae2
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 13:39:21 2018 +0000

description:
For the kludges we don't have or need a device (parent) pointer.

diffstat:

 sys/external/bsd/drm2/include/linux/pci.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 2d65f9a10f2f -r d6aed7d2fae2 sys/external/bsd/drm2/include/linux/pci.h
--- a/sys/external/bsd/drm2/include/linux/pci.h Mon Aug 27 13:39:07 2018 +0000
+++ b/sys/external/bsd/drm2/include/linux/pci.h Mon Aug 27 13:39:21 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pci.h,v 1.30 2018/08/27 07:47:32 riastradh Exp $       */
+/*     $NetBSD: pci.h,v 1.31 2018/08/27 13:39:21 riastradh Exp $       */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -204,7 +204,7 @@
 #endif
        pdev->bus = kmem_zalloc(sizeof(struct pci_bus), KM_NOSLEEP);
        pdev->bus->pb_pc = pa->pa_pc;
-       pdev->bus->pb_dev = device_parent(dev);
+       pdev->bus->pb_dev = dev == NULL ? NULL : device_parent(dev);
        pdev->bus->number = pa->pa_bus;
        pdev->devfn = PCI_DEVFN(pa->pa_device, pa->pa_function);
        pdev->vendor = PCI_VENDOR(pa->pa_id);



Home | Main Index | Thread Index | Old Index