Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/oea copy properties for valkyriefb as well



details:   https://anonhg.NetBSD.org/src/rev/a14ae4910531
branches:  trunk
changeset: 779379:a14ae4910531
user:      macallan <macallan%NetBSD.org@localhost>
date:      Thu May 24 00:40:11 2012 +0000

description:
copy properties for valkyriefb as well

diffstat:

 sys/arch/powerpc/oea/ofw_autoconf.c |  13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r c954877349cc -r a14ae4910531 sys/arch/powerpc/oea/ofw_autoconf.c
--- a/sys/arch/powerpc/oea/ofw_autoconf.c       Wed May 23 21:47:23 2012 +0000
+++ b/sys/arch/powerpc/oea/ofw_autoconf.c       Thu May 24 00:40:11 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ofw_autoconf.c,v 1.15 2011/07/17 20:54:46 joerg Exp $ */
+/* $NetBSD: ofw_autoconf.c,v 1.16 2012/05/24 00:40:11 macallan Exp $ */
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
  * Copyright (C) 1995, 1996 TooLs GmbH.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ofw_autoconf.c,v 1.15 2011/07/17 20:54:46 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ofw_autoconf.c,v 1.16 2012/05/24 00:40:11 macallan Exp $");
 
 #ifdef ofppc
 #include "gtpci.h"
@@ -219,6 +219,15 @@
                parent = dev;
                return;
        }
+
+       if (device_is_a(dev, "valkyriefb")) {
+               struct confargs *ca = aux;
+               prop_dictionary_t dict;
+
+               dict = device_properties(dev);
+               copy_disp_props(dev, ca->ca_node, dict);
+       }
+
 #if NGTPCI > 0
        if (device_is_a(dev, "gtpci")) {
                extern struct gtpci_prot gtpci0_prot, gtpci1_prot;



Home | Main Index | Thread Index | Old Index