Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sh5/dev Try to configure all children of cprc0, not...



details:   https://anonhg.NetBSD.org/src/rev/d62833baf5eb
branches:  trunk
changeset: 544169:d62833baf5eb
user:      scw <scw%NetBSD.org@localhost>
date:      Thu Mar 13 14:37:36 2003 +0000

description:
Try to configure all children of cprc0, not just clock.

diffstat:

 sys/arch/sh5/dev/cprc.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 89b6f5aced96 -r d62833baf5eb sys/arch/sh5/dev/cprc.c
--- a/sys/arch/sh5/dev/cprc.c   Thu Mar 13 14:15:58 2003 +0000
+++ b/sys/arch/sh5/dev/cprc.c   Thu Mar 13 14:37:36 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cprc.c,v 1.5 2003/01/01 02:11:57 thorpej Exp $ */
+/*     $NetBSD: cprc.c,v 1.6 2003/03/13 14:37:36 scw Exp $     */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -109,6 +109,7 @@
 {
        struct pbridge_attach_args *pa = args;
        struct cprc_softc *sc = (struct cprc_softc *)self;
+       struct device *child;
        int i;
 
 #ifdef notyet
@@ -124,9 +125,8 @@
        printf(": Clock, Power and Watchdog/Reset Controller\n");
 
        for (i = 0; cprc_subdevs[i] != NULL; i++) {
-               if (i == 0 &&
-                   config_found(self, (void *)cprc_subdevs[i], cprcprint) ==
-                   NULL)
+               child = config_found(self, (void *)cprc_subdevs[i], cprcprint);
+               if (i == 0 && child == NULL)
                        panic("%s: no clock driver configured!",self->dv_xname);
        }
 }



Home | Main Index | Thread Index | Old Index