aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/stg
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2001-01-23 22:18:07 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2001-01-23 22:18:07 +0000
commitb787813727f2bafae1688fb9c52864c1d0cbd818 (patch)
tree9949c8b3a55bbae91ba8af1f111abe5d5faa4868 /sys/dev/stg
parent98ba52eadc503e84d1628b4121d12dea8fd47907 (diff)
Notes
Diffstat (limited to 'sys/dev/stg')
-rw-r--r--sys/dev/stg/tmc18c30_pccard.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/sys/dev/stg/tmc18c30_pccard.c b/sys/dev/stg/tmc18c30_pccard.c
index 7d05a67d82cdb..7798b488dc418 100644
--- a/sys/dev/stg/tmc18c30_pccard.c
+++ b/sys/dev/stg/tmc18c30_pccard.c
@@ -92,10 +92,10 @@ extern struct stg_softc *stgdata[];
static int stgprobe(DEVPORT_PDEVICE devi);
static int stgattach(DEVPORT_PDEVICE devi);
-static int stg_card_intr __P((DEVPORT_PDEVICE));
static void stg_card_unload __P((DEVPORT_PDEVICE));
#if defined(__FreeBSD__) && __FreeBSD_version < 400001
static int stg_card_init __P((DEVPORT_PDEVICE));
+static int stg_card_intr __P((DEVPORT_PDEVICE));
#endif
#if defined(__FreeBSD__) && __FreeBSD_version >= 400001
@@ -301,6 +301,13 @@ stg_card_init(DEVPORT_PDEVICE devi)
return (0);
}
+
+static int
+stg_card_intr(DEVPORT_PDEVICE devi)
+{
+ stgintr(DEVPORT_PDEVGET_SOFTC(devi));
+ return 1;
+}
#endif
static void
@@ -314,13 +321,6 @@ stg_card_unload(DEVPORT_PDEVICE devi)
}
static int
-stg_card_intr(DEVPORT_PDEVICE devi)
-{
- stgintr(DEVPORT_PDEVGET_SOFTC(devi));
- return 1;
-}
-
-static int
stgprobe(DEVPORT_PDEVICE devi)
{
int rv;
@@ -341,7 +341,9 @@ stgprobe(DEVPORT_PDEVICE devi)
static int
stgattach(DEVPORT_PDEVICE devi)
{
+#if defined(__FreeBSD__) && __FreeBSD_version < 400001
int unit = DEVPORT_PDEVUNIT(devi);
+#endif
struct stg_softc *sc;
struct scsi_low_softc *slp;
u_int32_t flags = DEVPORT_PDEVFLAGS(devi);