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 pmf_device_register returns false on f...



details:   https://anonhg.NetBSD.org/src/rev/b8fb53465787
branches:  trunk
changeset: 337154:b8fb53465787
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Apr 04 15:12:39 2015 +0000

description:
pmf_device_register returns false on failure, not true

diffstat:

 sys/external/bsd/drm2/i915drm/intelfb.c   |  6 +++---
 sys/external/bsd/drm2/nouveau/nouveaufb.c |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 0d9963875574 -r b8fb53465787 sys/external/bsd/drm2/i915drm/intelfb.c
--- a/sys/external/bsd/drm2/i915drm/intelfb.c   Sat Apr 04 15:10:47 2015 +0000
+++ b/sys/external/bsd/drm2/i915drm/intelfb.c   Sat Apr 04 15:12:39 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intelfb.c,v 1.12 2015/03/05 17:56:39 riastradh Exp $   */
+/*     $NetBSD: intelfb.c,v 1.13 2015/04/04 15:12:39 jmcneill Exp $    */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intelfb.c,v 1.12 2015/03/05 17:56:39 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intelfb.c,v 1.13 2015/04/04 15:12:39 jmcneill Exp $");
 
 #include <sys/types.h>
 #include <sys/bus.h>
@@ -180,7 +180,7 @@
                return;
        }
 
-       if (pmf_device_register1(sc->sc_dev, NULL, NULL, &intelfb_shutdown))
+       if (!pmf_device_register1(sc->sc_dev, NULL, NULL, &intelfb_shutdown))
                aprint_error_dev(sc->sc_dev,
                    "failed to register shutdown handler\n");
 
diff -r 0d9963875574 -r b8fb53465787 sys/external/bsd/drm2/nouveau/nouveaufb.c
--- a/sys/external/bsd/drm2/nouveau/nouveaufb.c Sat Apr 04 15:10:47 2015 +0000
+++ b/sys/external/bsd/drm2/nouveau/nouveaufb.c Sat Apr 04 15:12:39 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nouveaufb.c,v 1.1 2015/03/06 01:43:07 riastradh Exp $  */
+/*     $NetBSD: nouveaufb.c,v 1.2 2015/04/04 15:12:39 jmcneill Exp $   */
 
 /*-
  * Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nouveaufb.c,v 1.1 2015/03/06 01:43:07 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveaufb.c,v 1.2 2015/04/04 15:12:39 jmcneill Exp $");
 
 #include <sys/types.h>
 #include <sys/bus.h>
@@ -158,7 +158,7 @@
                return;
        }
 
-       if (pmf_device_register1(sc->sc_dev, NULL, NULL, &nouveaufb_shutdown))
+       if (!pmf_device_register1(sc->sc_dev, NULL, NULL, &nouveaufb_shutdown))
                aprint_error_dev(sc->sc_dev,
                    "failed to register shutdown handler\n");
 



Home | Main Index | Thread Index | Old Index