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 don't bother reading ofw properties for...



details:   https://anonhg.NetBSD.org/src/rev/3f0b55e244d8
branches:  trunk
changeset: 446058:3f0b55e244d8
user:      scole <scole%NetBSD.org@localhost>
date:      Wed Nov 21 17:54:42 2018 +0000

description:
don't bother reading ofw properties for platinumfb

diffstat:

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

diffs (30 lines):

diff -r 48c2e93ef555 -r 3f0b55e244d8 sys/arch/powerpc/oea/ofw_autoconf.c
--- a/sys/arch/powerpc/oea/ofw_autoconf.c       Wed Nov 21 17:39:19 2018 +0000
+++ b/sys/arch/powerpc/oea/ofw_autoconf.c       Wed Nov 21 17:54:42 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ofw_autoconf.c,v 1.22 2018/08/17 15:54:35 macallan Exp $ */
+/* $NetBSD: ofw_autoconf.c,v 1.23 2018/11/21 17:54:42 scole 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.22 2018/08/17 15:54:35 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ofw_autoconf.c,v 1.23 2018/11/21 17:54:42 scole Exp $");
 
 #ifdef ofppc
 #include "gtpci.h"
@@ -244,6 +244,11 @@
                copy_disp_props(dev, ca->ca_node, dict);
        }
 
+       /* cannot read useful display properties for platinum */
+       if (device_is_a(dev, "platinumfb")) {
+               return;
+       }
+
 #if NGTPCI > 0
        if (device_is_a(dev, "gtpci")) {
                extern struct gtpci_prot gtpci0_prot, gtpci1_prot;



Home | Main Index | Thread Index | Old Index