Source-Changes-HG archive

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

[src/thorpej-cfargs]: src/sys/arch/arm/ep93xx config_found() takes a device_t...



details:   https://anonhg.NetBSD.org/src/rev/2e3ab1737f5e
branches:  thorpej-cfargs
changeset: 1019768:2e3ab1737f5e
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sun Apr 18 16:46:06 2021 +0000

description:
config_found() takes a device_t, not a softc.  This is a bug left-over
from decoupling of device_t / softcs long ago.

diffstat:

 sys/arch/arm/ep93xx/eppcic.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 545ef2949962 -r 2e3ab1737f5e sys/arch/arm/ep93xx/eppcic.c
--- a/sys/arch/arm/ep93xx/eppcic.c      Sat Apr 17 18:03:32 2021 +0000
+++ b/sys/arch/arm/ep93xx/eppcic.c      Sun Apr 18 16:46:06 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: eppcic.c,v 1.8.10.1 2021/03/23 07:14:43 thorpej Exp $  */
+/*     $NetBSD: eppcic.c,v 1.8.10.2 2021/04/18 16:46:06 thorpej Exp $  */
 
 /*
  * Copyright (c) 2005 HAMAJIMA Katsuomi. All rights reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: eppcic.c,v 1.8.10.1 2021/03/23 07:14:43 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: eppcic.c,v 1.8.10.2 2021/04/18 16:46:06 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -242,8 +242,8 @@
        paa.paa_busname = "pcmcia";
        paa.pct = (pcmcia_chipset_tag_t)&eppcic_functions;
        paa.pch = (pcmcia_chipset_handle_t)ph;
-       ph->ph_card = config_found((void*)sc, &paa, eppcic_print, CFARG_EOL);
-       
+       ph->ph_card = config_found(sc->sc_dev, &paa, eppcic_print, CFARG_EOL);
+
        epgpio_intr_establish(sc->sc_gpio, ph->ph_port, ph->ph_cd[0],
                              EDGE_TRIGGER | FALLING_EDGE | DEBOUNCE,
                              IPL_TTY, eppcic_intr_carddetect, ph);



Home | Main Index | Thread Index | Old Index