Fri Oct 2 04:38:47 2009 UTC ()
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.


(uebayasi)
diff -r1.2 -r1.3 src/sys/dev/pci/sdhc_pci.c

cvs diff -r1.2 -r1.3 src/sys/dev/pci/sdhc_pci.c (expand / switch to context diff)
--- src/sys/dev/pci/sdhc_pci.c 2009/06/29 11:05:12 1.2
+++ src/sys/dev/pci/sdhc_pci.c 2009/10/02 04:38:47 1.3
@@ -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;