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/nouveau/nvkm/engine/device Ta...



details:   https://anonhg.NetBSD.org/src/rev/860c422d32ec
branches:  trunk
changeset: 992757:860c422d32ec
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 07:42:35 2018 +0000

description:
Tag the pci_enable/disable_device calls that seem necessary.

diffstat:

 sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/device/nouveau_nvkm_engine_device_pci.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 55ca8e4cc8bd -r 860c422d32ec sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/device/nouveau_nvkm_engine_device_pci.c
--- a/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/device/nouveau_nvkm_engine_device_pci.c        Mon Aug 27 07:42:24 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/device/nouveau_nvkm_engine_device_pci.c        Mon Aug 27 07:42:35 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nouveau_nvkm_engine_device_pci.c,v 1.4 2018/08/27 07:42:24 riastradh Exp $     */
+/*     $NetBSD: nouveau_nvkm_engine_device_pci.c,v 1.5 2018/08/27 07:42:35 riastradh Exp $     */
 
 /*
  * Copyright 2015 Red Hat Inc.
@@ -24,7 +24,7 @@
  * Authors: Ben Skeggs <bskeggs%redhat.com@localhost>
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nouveau_nvkm_engine_device_pci.c,v 1.4 2018/08/27 07:42:24 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_nvkm_engine_device_pci.c,v 1.5 2018/08/27 07:42:35 riastradh Exp $");
 
 #include <core/pci.h>
 #include "priv.h"
@@ -1634,7 +1634,7 @@
 nvkm_device_pci_dtor(struct nvkm_device *device)
 {
        struct nvkm_device_pci *pdev = nvkm_device_pci(device);
-       pci_disable_device(pdev->pdev);
+       linux_pci_disable_device(pdev->pdev);
        return pdev;
 }
 
@@ -1665,7 +1665,7 @@
        struct nvkm_device_pci *pdev;
        int ret;
 
-       ret = pci_enable_device(pci_dev);
+       ret = linux_pci_enable_device(pci_dev);
        if (ret)
                return ret;
 
@@ -1695,7 +1695,7 @@
        }
 
        if (!(pdev = kzalloc(sizeof(*pdev), GFP_KERNEL))) {
-               pci_disable_device(pci_dev);
+               linux_pci_disable_device(pci_dev);
                return -ENOMEM;
        }
        *pdevice = &pdev->device;



Home | Main Index | Thread Index | Old Index