Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Pass not (struct sdhc_pci_softc *) but (struct s...



details:   https://anonhg.NetBSD.org/src/rev/6ec65b628a74
branches:  trunk
changeset: 747774:6ec65b628a74
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Fri Oct 02 04:38:47 2009 +0000

description:
Pass not (struct sdhc_pci_softc *) but (struct sdhc_softc *) to sdhc_intr().
No functional change because struct sdhc_pci_softc has struct sdhc_softc as
the 1st member.

diffstat:

 sys/dev/pci/sdhc_pci.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b0e07249e920 -r 6ec65b628a74 sys/dev/pci/sdhc_pci.c
--- a/sys/dev/pci/sdhc_pci.c    Fri Oct 02 04:33:58 2009 +0000
+++ b/sys/dev/pci/sdhc_pci.c    Fri Oct 02 04:38:47 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sdhc_pci.c,v 1.2 2009/06/29 11:05:12 hubertf Exp $     */
+/*     $NetBSD: sdhc_pci.c,v 1.3 2009/10/02 04:38:47 uebayasi Exp $    */
 /*     $OpenBSD: sdhc_pci.c,v 1.7 2007/10/30 18:13:45 chl Exp $        */
 
 /*
@@ -18,7 +18,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sdhc_pci.c,v 1.2 2009/06/29 11:05:12 hubertf Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdhc_pci.c,v 1.3 2009/10/02 04:38:47 uebayasi Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -221,7 +221,7 @@
        }
 
        intrstr = pci_intr_string(pc, ih);
-       sc->sc_ih = pci_intr_establish(pc, ih, IPL_SDMMC, sdhc_intr, sc);
+       sc->sc_ih = pci_intr_establish(pc, ih, IPL_SDMMC, sdhc_intr, &sc->sc);
        if (sc->sc_ih == NULL) {
                aprint_error_dev(self, "couldn't establish interrupt\n");
                goto err;



Home | Main Index | Thread Index | Old Index