Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/riastradh-drm2]: src/sys/external/bsd/drm2/pci Add missing initializatio...



details:   https://anonhg.NetBSD.org/src/rev/309382f03c66
branches:  riastradh-drm2
changeset: 788524:309382f03c66
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Sep 08 15:46:22 2013 +0000

description:
Add missing initialization of dev->dmat in drm_pci_attach.

diffstat:

 sys/external/bsd/drm2/pci/drm_pci.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r c959144fa825 -r 309382f03c66 sys/external/bsd/drm2/pci/drm_pci.c
--- a/sys/external/bsd/drm2/pci/drm_pci.c       Sun Sep 08 15:44:14 2013 +0000
+++ b/sys/external/bsd/drm2/pci/drm_pci.c       Sun Sep 08 15:46:22 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_pci.c,v 1.1.2.8 2013/07/24 04:05:34 riastradh Exp $        */
+/*     $NetBSD: drm_pci.c,v 1.1.2.9 2013/09/08 15:46:22 riastradh Exp $        */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_pci.c,v 1.1.2.8 2013/07/24 04:05:34 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_pci.c,v 1.1.2.9 2013/09/08 15:46:22 riastradh Exp $");
 
 #include <sys/types.h>
 #include <sys/errno.h>
@@ -106,6 +106,7 @@
 
        dev->bst = pa->pa_memt;
        dev->bus_dmat = pa->pa_dmat; /* XXX dmat64?  */
+       dev->dmat = dev->bus_dmat;
        dev->dmat_subregion_p = false;
 
        CTASSERT(PCI_NMAPREGS < (SIZE_MAX / sizeof(dev->bus_maps[0])));



Home | Main Index | Thread Index | Old Index