Module Name: src Committed By: dyoung Date: Sun Jul 17 01:29:26 UTC 2011
Modified Files: src/sys/arch/mips/atheros/dev: argpio.c Log Message: Repair device_t/softc so that this compiles. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/arch/mips/atheros/dev/argpio.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/mips/atheros/dev/argpio.c diff -u src/sys/arch/mips/atheros/dev/argpio.c:1.5 src/sys/arch/mips/atheros/dev/argpio.c:1.6 --- src/sys/arch/mips/atheros/dev/argpio.c:1.5 Sun Jul 10 06:24:19 2011 +++ src/sys/arch/mips/atheros/dev/argpio.c Sun Jul 17 01:29:25 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: argpio.c,v 1.5 2011/07/10 06:24:19 matt Exp $ */ +/* $NetBSD: argpio.c,v 1.6 2011/07/17 01:29:25 dyoung Exp $ */ /*- * Copyright (c) 2006 Garrett D'Amore @@ -32,7 +32,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: argpio.c,v 1.5 2011/07/10 06:24:19 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: argpio.c,v 1.6 2011/07/17 01:29:25 dyoung Exp $"); #include <sys/param.h> #include <sys/bus.h> @@ -159,9 +159,10 @@ sc->sc_resetbtn.smpsw_name = device_xname(sc->sc_dev); sc->sc_resetbtn.smpsw_type = PSWITCH_TYPE_RESET; - if (sysmon_pswitch_register(&sc->sc_resetbtn) != 0) - printf("%s: unable to register reset button\n", - sc->sc_dev.dv_xname); + if (sysmon_pswitch_register(&sc->sc_resetbtn) != 0) { + aprint_normal_dev(sc->sc_dev, + "unable to register reset button\n"); + } } reg = GETREG(sc, GPIO_CR); @@ -204,7 +205,7 @@ gba.gba_gc = &sc->sc_gc; gba.gba_pins = sc->sc_pins; gba.gba_npins = sc->sc_npins; - config_found_ia(&sc->sc_dev, "gpiobus", &gba, gpiobus_print); + config_found_ia(sc->sc_dev, "gpiobus", &gba, gpiobus_print); } void