Module Name: src Committed By: thorpej Date: Sun Apr 25 18:26:15 UTC 2021
Modified Files: src/sys/arch/hpcmips/dev: it8368.c Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/sys/arch/hpcmips/dev/it8368.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/hpcmips/dev/it8368.c diff -u src/sys/arch/hpcmips/dev/it8368.c:1.25 src/sys/arch/hpcmips/dev/it8368.c:1.26 --- src/sys/arch/hpcmips/dev/it8368.c:1.25 Sat Apr 24 23:36:38 2021 +++ src/sys/arch/hpcmips/dev/it8368.c Sun Apr 25 18:26:15 2021 @@ -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 @@ it8368_attach_socket(struct it8368e_soft 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); } }