Module Name:    src
Committed By:   riastradh
Date:           Mon Aug 27 13:39:21 UTC 2018

Modified Files:
        src/sys/external/bsd/drm2/include/linux: pci.h

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


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/external/bsd/drm2/include/linux/pci.h

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/include/linux/pci.h
diff -u src/sys/external/bsd/drm2/include/linux/pci.h:1.30 src/sys/external/bsd/drm2/include/linux/pci.h:1.31
--- src/sys/external/bsd/drm2/include/linux/pci.h:1.30	Mon Aug 27 07:47:32 2018
+++ src/sys/external/bsd/drm2/include/linux/pci.h	Mon Aug 27 13:39:21 2018
@@ -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 @@ linux_pci_dev_init(struct pci_dev *pdev,
 #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);

Reply via email to