Module Name:    src
Committed By:   cegger
Date:           Fri Apr 17 18:43:53 UTC 2009

Modified Files:
        src/sys/dev/pci: if_tlp_pci.c

Log Message:
pci_activate() wants a softc and not a device


To generate a diff of this commit:
cvs rdiff -u -r1.111 -r1.112 src/sys/dev/pci/if_tlp_pci.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/dev/pci/if_tlp_pci.c
diff -u src/sys/dev/pci/if_tlp_pci.c:1.111 src/sys/dev/pci/if_tlp_pci.c:1.112
--- src/sys/dev/pci/if_tlp_pci.c:1.111	Fri Apr 17 16:57:37 2009
+++ src/sys/dev/pci/if_tlp_pci.c	Fri Apr 17 18:43:53 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_tlp_pci.c,v 1.111 2009/04/17 16:57:37 cegger Exp $	*/
+/*	$NetBSD: if_tlp_pci.c,v 1.112 2009/04/17 18:43:53 cegger Exp $	*/
 
 /*-
  * Copyright (c) 1998, 1999, 2000, 2002 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_tlp_pci.c,v 1.111 2009/04/17 16:57:37 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_tlp_pci.c,v 1.112 2009/04/17 18:43:53 cegger Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -523,7 +523,7 @@
 	}
 
 	/* power up chip */
-	if ((error = pci_activate(pa->pa_pc, pa->pa_tag, self,
+	if ((error = pci_activate(pa->pa_pc, pa->pa_tag, (void *)psc,
 	    NULL)) && error != EOPNOTSUPP) {
 		aprint_error_dev(self, "cannot activate %d\n",
 		    error);

Reply via email to