Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic - use local ahd_name() to print device name
details: https://anonhg.NetBSD.org/src/rev/aa0f71a171a8
branches: trunk
changeset: 747197:aa0f71a171a8
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Sep 05 12:43:56 2009 +0000
description:
- use local ahd_name() to print device name
- pass proper device_t types to config(9) functions
diffstat:
sys/dev/ic/aic79xx_osm.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 2f6c676a603c -r aa0f71a171a8 sys/dev/ic/aic79xx_osm.c
--- a/sys/dev/ic/aic79xx_osm.c Sat Sep 05 12:39:25 2009 +0000
+++ b/sys/dev/ic/aic79xx_osm.c Sat Sep 05 12:43:56 2009 +0000
@@ -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);
Home |
Main Index |
Thread Index |
Old Index