From a0687f1f964b7470475ea56ea7d0d2c8c8ba42c6 Mon Sep 17 00:00:00 2001 From: riastradh Date: Sat, 26 Jul 2014 07:53:14 +0000 Subject: [PATCH] Report the same PCI domain (cf_unit) as everything else in NetBSD. --- sys/external/bsd/drm2/pci/drm_pci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/external/bsd/drm2/pci/drm_pci.c b/sys/external/bsd/drm2/pci/drm_pci.c index 9ba06ad53f8c..807e8fecdc95 100644 --- a/sys/external/bsd/drm2/pci/drm_pci.c +++ b/sys/external/bsd/drm2/pci/drm_pci.c @@ -1,4 +1,4 @@ -/* $NetBSD: drm_pci.c,v 1.5 2014/07/17 21:13:49 riastradh Exp $ */ +/* $NetBSD: drm_pci.c,v 1.6 2014/07/26 07:53:14 riastradh Exp $ */ /*- * Copyright (c) 2013 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: drm_pci.c,v 1.5 2014/07/17 21:13:49 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: drm_pci.c,v 1.6 2014/07/26 07:53:14 riastradh Exp $"); #include #include @@ -280,7 +280,7 @@ drm_pci_get_name(struct drm_device *dev) static int drm_pci_format_unique(struct drm_device *dev, char *buf, size_t size) { - const unsigned int domain = 0; /* XXX PCI domains? */ + const unsigned int domain = device_unit(device_parent(dev->dev)); const unsigned int bus = dev->pdev->pd_pa.pa_bus; const unsigned int device = dev->pdev->pd_pa.pa_device; const unsigned int function = dev->pdev->pd_pa.pa_function;