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 dev->driver->load in...



details:   https://anonhg.NetBSD.org/src/rev/e1f0e0bbcde2
branches:  riastradh-drm2
changeset: 788467:e1f0e0bbcde2
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Jul 24 03:56:33 2013 +0000

description:
Call dev->driver->load in drm_attach.

diffstat:

 sys/external/bsd/drm2/drm/drm_drv.c |  13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 42c8979ca019 -r e1f0e0bbcde2 sys/external/bsd/drm2/drm/drm_drv.c
--- a/sys/external/bsd/drm2/drm/drm_drv.c       Wed Jul 24 03:56:18 2013 +0000
+++ b/sys/external/bsd/drm2/drm/drm_drv.c       Wed Jul 24 03:56:33 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_drv.c,v 1.1.2.17 2013/07/24 03:56:18 riastradh Exp $       */
+/*     $NetBSD: drm_drv.c,v 1.1.2.18 2013/07/24 03:56:33 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.17 2013/07/24 03:56:18 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_drv.c,v 1.1.2.18 2013/07/24 03:56:33 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -304,6 +304,15 @@
                return;
        }
 
+       if (dev->driver->load != NULL) {
+               error = (*dev->driver->load)(dev, daa->daa_flags);
+               if (error) {
+                       aprint_error_dev(parent, "unable to load driver: %d\n",
+                           error);
+                       return;
+               }
+       }
+
 #if 0                          /* XXX drm wsdisplay */
        attach wsdisplay;
 #endif



Home | Main Index | Thread Index | Old Index