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 Call drm_mode_group_init_...
details: https://anonhg.NetBSD.org/src/rev/4ff085b0e7d1
branches: riastradh-drm2
changeset: 788617:4ff085b0e7d1
user: riastradh <riastradh%NetBSD.org@localhost>
date: Tue Jan 21 20:56:40 2014 +0000
description:
Call drm_mode_group_init_legacy_group in drm_attach like Linux does.
diffstat:
sys/external/bsd/drm2/drm/drm_drv.c | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
diffs (40 lines):
diff -r 07d0ecbde5ad -r 4ff085b0e7d1 sys/external/bsd/drm2/drm/drm_drv.c
--- a/sys/external/bsd/drm2/drm/drm_drv.c Tue Jan 21 20:56:30 2014 +0000
+++ b/sys/external/bsd/drm2/drm/drm_drv.c Tue Jan 21 20:56:40 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_drv.c,v 1.1.2.30 2014/01/21 20:56:30 riastradh Exp $ */
+/* $NetBSD: drm_drv.c,v 1.1.2.31 2014/01/21 20:56:40 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.30 2014/01/21 20:56:30 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_drv.c,v 1.1.2.31 2014/01/21 20:56:40 riastradh Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -327,12 +327,19 @@
}
}
+ if (drm_core_check_feature(dev, DRIVER_MODESET)) {
+ /* XXX errno Linux->NetBSD */
+ error = -drm_mode_group_init_legacy_group(dev,
+ &dev->primary->mode_group);
+ if (error)
+ goto fail2;
+ }
+
/* Success! */
sc->sc_initialized = true;
return;
-fail2: __unused
- if (dev->driver->unload != NULL)
+fail2: if (dev->driver->unload != NULL)
(*dev->driver->unload)(dev);
fail1: drm_undo_fill_in_dev(dev);
fail0: return;
Home |
Main Index |
Thread Index |
Old Index