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/drm Initialize dev->dev, dev-...
details: https://anonhg.NetBSD.org/src/rev/2495680e48ab
branches: riastradh-drm2
changeset: 788487:2495680e48ab
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 04:01:37 2013 +0000
description:
Initialize dev->dev, dev->primary, and dev->control in drm_attach.
diffstat:
sys/external/bsd/drm2/drm/drm_drv.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r e8980c38929d -r 2495680e48ab sys/external/bsd/drm2/drm/drm_drv.c
--- a/sys/external/bsd/drm2/drm/drm_drv.c Wed Jul 24 04:01:22 2013 +0000
+++ b/sys/external/bsd/drm2/drm/drm_drv.c Wed Jul 24 04:01:37 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_drv.c,v 1.1.2.20 2013/07/24 03:58:36 riastradh Exp $ */
+/* $NetBSD: drm_drv.c,v 1.1.2.21 2013/07/24 04:01:37 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_drv.c,v 1.1.2.20 2013/07/24 03:58:36 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_drv.c,v 1.1.2.21 2013/07/24 04:01:37 riastradh Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -293,6 +293,12 @@
sizeof(sc->sc_minor[i].mode_group));
}
+ dev->dev = self;
+
+ if (drm_core_check_feature(dev, DRIVER_MODESET))
+ dev->control = &sc->sc_minor[DRM_MINOR_CONTROL];
+ dev->primary = &sc->sc_minor[DRM_MINOR_LEGACY];
+
error = drm_fill_in_dev(dev, NULL, daa->daa_driver);
if (error) {
aprint_error_dev(parent, "unable to initialize drm: %d\n",
Home |
Main Index |
Thread Index |
Old Index