Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hpcmips/dev it8368_attach_socket(): Pass the device...



details:   https://anonhg.NetBSD.org/src/rev/2291d41e22df
branches:  trunk
changeset: 961927:2291d41e22df
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sun Apr 25 18:26:15 2021 +0000

description:
it8368_attach_socket(): Pass the device_t to config_found(), not the
softc.  This was missed due to a (void *) cast when the device_t / softc
split changes occurred.

diffstat:

 sys/arch/hpcmips/dev/it8368.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r dead66c201f1 -r 2291d41e22df sys/arch/hpcmips/dev/it8368.c
--- a/sys/arch/hpcmips/dev/it8368.c     Sun Apr 25 18:16:25 2021 +0000
+++ b/sys/arch/hpcmips/dev/it8368.c     Sun Apr 25 18:26:15 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: it8368.c,v 1.25 2021/04/24 23:36:38 thorpej Exp $ */
+/*     $NetBSD: it8368.c,v 1.26 2021/04/25 18:26:15 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: it8368.c,v 1.25 2021/04/24 23:36:38 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: it8368.c,v 1.26 2021/04/25 18:26:15 thorpej Exp $");
 
 #undef WINCE_DEFAULT_SETTING /* for debug */
 #undef IT8368DEBUG 
@@ -381,7 +381,8 @@
        paa.pct = (pcmcia_chipset_tag_t)&it8368_functions;
        paa.pch = (pcmcia_chipset_handle_t)sc;
 
-       if ((sc->sc_pcmcia = config_found(sc, &paa, it8368_print, CFARG_EOL))) {
+       if ((sc->sc_pcmcia = config_found(sc->sc_dev, &paa, it8368_print,
+                                         CFARG_EOL))) {
                it8368_init_socket(sc);
        }
 }



Home | Main Index | Thread Index | Old Index