Source-Changes-HG archive

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

[src/thorpej-cfargs]: src/sys/dev/pci No need to pass interface attribute or ...



details:   https://anonhg.NetBSD.org/src/rev/d32d6efc2147
branches:  thorpej-cfargs
changeset: 954095:d32d6efc2147
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sun Mar 28 20:41:04 2021 +0000

description:
No need to pass interface attribute or locators to config_found().

diffstat:

 sys/dev/pci/mfii.c |  10 ++++------
 sys/dev/pci/mpii.c |   9 +++------
 2 files changed, 7 insertions(+), 12 deletions(-)

diffs (64 lines):

diff -r 42d48688b69f -r d32d6efc2147 sys/dev/pci/mfii.c
--- a/sys/dev/pci/mfii.c        Sun Mar 28 20:40:30 2021 +0000
+++ b/sys/dev/pci/mfii.c        Sun Mar 28 20:41:04 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mfii.c,v 1.7.4.2 2021/03/22 16:23:45 thorpej Exp $ */
+/* $NetBSD: mfii.c,v 1.7.4.3 2021/03/28 20:41:04 thorpej Exp $ */
 /* $OpenBSD: mfii.c,v 1.58 2018/08/14 05:22:21 jmatthew Exp $ */
 
 /*
@@ -19,7 +19,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mfii.c,v 1.7.4.2 2021/03/22 16:23:45 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mfii.c,v 1.7.4.3 2021/03/28 20:41:04 thorpej Exp $");
 
 #include "bio.h"
 
@@ -988,13 +988,11 @@
 mfii_rescan(device_t self, const char *ifattr, const int *locators)
 {
        struct mfii_softc *sc = device_private(self);
+
        if (sc->sc_child != NULL)
                return 0;
 
-       sc->sc_child = config_found(self, &sc->sc_chan, scsiprint,
-           CFARG_IATTR, ifattr,
-           CFARG_LOCATORS, locators,
-           CFARG_EOL);
+       sc->sc_child = config_found(self, &sc->sc_chan, scsiprint, CFARG_EOL);
        return 0;
 }
 
diff -r 42d48688b69f -r d32d6efc2147 sys/dev/pci/mpii.c
--- a/sys/dev/pci/mpii.c        Sun Mar 28 20:40:30 2021 +0000
+++ b/sys/dev/pci/mpii.c        Sun Mar 28 20:41:04 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mpii.c,v 1.27.2.2 2021/03/22 16:23:45 thorpej Exp $ */
+/* $NetBSD: mpii.c,v 1.27.2.3 2021/03/28 20:41:04 thorpej Exp $ */
 /*     $OpenBSD: mpii.c,v 1.115 2018/08/14 05:22:21 jmatthew Exp $     */
 /*
  * Copyright (c) 2010, 2012 Mike Belopuhov
@@ -20,7 +20,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mpii.c,v 1.27.2.2 2021/03/22 16:23:45 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mpii.c,v 1.27.2.3 2021/03/28 20:41:04 thorpej Exp $");
 
 #include "bio.h"
 
@@ -726,10 +726,7 @@
        if (sc->sc_child != NULL)
                return 0;
 
-       sc->sc_child = config_found(self, &sc->sc_chan, scsiprint,
-           CFARG_IATTR, ifattr,
-           CFARG_LOCATORS, locators,
-           CFARG_EOL);
+       sc->sc_child = config_found(self, &sc->sc_chan, scsiprint, CFARG_EOL);
 
        return 0;
 }



Home | Main Index | Thread Index | Old Index