From 27a661f0fb6342ae7882a8578c5acb8b3ad69caa Mon Sep 17 00:00:00 2001 From: drochner Date: Wed, 8 Sep 2004 20:13:52 +0000 Subject: [PATCH] use interface attribute / locator passing versions of config_search() --- sys/dev/qbus/uba.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/sys/dev/qbus/uba.c b/sys/dev/qbus/uba.c index 8fd5a9e77697..93e803947bee 100644 --- a/sys/dev/qbus/uba.c +++ b/sys/dev/qbus/uba.c @@ -1,4 +1,4 @@ -/* $NetBSD: uba.c,v 1.68 2003/08/28 14:59:06 ragge Exp $ */ +/* $NetBSD: uba.c,v 1.69 2004/09/08 20:13:52 drochner Exp $ */ /* * Copyright (c) 1982, 1986 The Regents of the University of California. * All rights reserved. @@ -69,7 +69,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: uba.c,v 1.68 2003/08/28 14:59:06 ragge Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uba.c,v 1.69 2004/09/08 20:13:52 drochner Exp $"); #include #include @@ -93,7 +93,8 @@ __KERNEL_RCSID(0, "$NetBSD: uba.c,v 1.68 2003/08/28 14:59:06 ragge Exp $"); #include "ioconf.h" -static int ubasearch (struct device *, struct cfdata *, void *); +static int ubasearch (struct device *, struct cfdata *, + const locdesc_t *, void *); static int ubaprint (void *, const char *); /* @@ -276,7 +277,7 @@ uba_attach(struct uba_softc *sc, paddr_t iopagephys) /* * Now start searching for devices. */ - config_search(ubasearch,(struct device *)sc, NULL); + config_search_ia(ubasearch,(struct device *)sc, "uba", NULL); if (sc->uh_afterscan) (*sc->uh_afterscan)(sc); @@ -285,7 +286,8 @@ uba_attach(struct uba_softc *sc, paddr_t iopagephys) } int -ubasearch(struct device *parent, struct cfdata *cf, void *aux) +ubasearch(struct device *parent, struct cfdata *cf, + const locdesc_t *ldesc, void *aux) { struct uba_softc *sc = (struct uba_softc *)parent; struct uba_attach_args ua;