Module Name:    src
Committed By:   tsutsui
Date:           Sat Sep  5 12:43:57 UTC 2009

Modified Files:
        src/sys/dev/ic: aic79xx_osm.c

Log Message:
- use local ahd_name() to print device name
- pass proper device_t types to config(9) functions


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/dev/ic/aic79xx_osm.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/ic/aic79xx_osm.c
diff -u src/sys/dev/ic/aic79xx_osm.c:1.25 src/sys/dev/ic/aic79xx_osm.c:1.26
--- src/sys/dev/ic/aic79xx_osm.c:1.25	Sat Sep  5 12:39:25 2009
+++ src/sys/dev/ic/aic79xx_osm.c	Sat Sep  5 12:43:56 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: aic79xx_osm.c,v 1.25 2009/09/05 12:39:25 tsutsui Exp $	*/
+/*	$NetBSD: aic79xx_osm.c,v 1.26 2009/09/05 12:43:56 tsutsui Exp $	*/
 
 /*
  * Bus independent NetBSD shim for the aic7xxx based adaptec SCSI controllers
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aic79xx_osm.c,v 1.25 2009/09/05 12:39:25 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aic79xx_osm.c,v 1.26 2009/09/05 12:43:56 tsutsui Exp $");
 
 #include <dev/ic/aic79xx_osm.h>
 #include <dev/ic/aic79xx_inline.h>
@@ -78,7 +78,7 @@
 	char	ahd_info[256];
 
 	ahd_controller_info(ahd, ahd_info, sizeof(ahd_info));
-	printf("%s: %s\n", device_xname(&ahd->sc_dev), ahd_info);
+	printf("%s: %s\n", ahd_name(ahd), ahd_info);
 
 	ahd_lock(ahd, &s);
 
@@ -100,7 +100,7 @@
 	ahd->sc_channel.chan_id = ahd->our_id;
 	ahd->sc_channel.chan_flags |= SCSIPI_CHAN_CANGROW;
 
-	ahd->sc_child = config_found((void *)ahd, &ahd->sc_channel, scsiprint);
+	ahd->sc_child = config_found(&ahd->sc_dev, &ahd->sc_channel, scsiprint);
 
 	ahd_intr_enable(ahd, TRUE);
 
@@ -808,7 +808,7 @@
 	struct ahd_softc *ahd = (struct ahd_softc*)self;
 
 	if (ahd->sc_child != NULL)
-		rv = config_detach((void *)ahd->sc_child, flags);
+		rv = config_detach(ahd->sc_child, flags);
 
 	pmf_device_deregister(&ahd->sc_dev);
 

Reply via email to