summaryrefslogtreecommitdiffstats
path: root/sys/dev/ncv
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-01-23 22:06:10 +0000
committerjhb <jhb@FreeBSD.org>2001-01-23 22:06:10 +0000
commitd56ddb5579b8333b3adf13c753b93e65b099db24 (patch)
tree98be5aeadf26c32f8905619134a70e8ef6efdaed /sys/dev/ncv
parenta24eb2156cdb6c469f94edd93f26ab3034b5c17b (diff)
downloadFreeBSD-src-d56ddb5579b8333b3adf13c753b93e65b099db24.zip
FreeBSD-src-d56ddb5579b8333b3adf13c753b93e65b099db24.tar.gz
The ncv_card_intr function is only used in older versions of FreeBSD, so
move its prototype and definition inside the appropriate #ifdef's.
Diffstat (limited to 'sys/dev/ncv')
-rw-r--r--sys/dev/ncv/ncr53c500_pccard.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/dev/ncv/ncr53c500_pccard.c b/sys/dev/ncv/ncr53c500_pccard.c
index 0ba9894..a7ac712 100644
--- a/sys/dev/ncv/ncr53c500_pccard.c
+++ b/sys/dev/ncv/ncr53c500_pccard.c
@@ -91,10 +91,10 @@ extern struct ncv_softc *ncvdata[];
static int ncvprobe(DEVPORT_PDEVICE devi);
static int ncvattach(DEVPORT_PDEVICE devi);
-static int ncv_card_intr __P((DEVPORT_PDEVICE));
static void ncv_card_unload __P((DEVPORT_PDEVICE));
#if defined(__FreeBSD__) && __FreeBSD_version < 400001
static int ncv_card_init __P((DEVPORT_PDEVICE));
+static int ncv_card_intr __P((DEVPORT_PDEVICE));
#endif
#if defined(__FreeBSD__) && __FreeBSD_version >= 400001
@@ -303,6 +303,14 @@ ncv_card_init(DEVPORT_PDEVICE devi)
return (ENXIO);
return (0);
}
+
+static int
+ncv_card_intr(DEVPORT_PDEVICE devi)
+{
+
+ ncvintr(DEVPORT_PDEVGET_SOFTC(devi));
+ return 1;
+}
#endif
static void
@@ -316,14 +324,6 @@ ncv_card_unload(DEVPORT_PDEVICE devi)
}
static int
-ncv_card_intr(DEVPORT_PDEVICE devi)
-{
-
- ncvintr(DEVPORT_PDEVGET_SOFTC(devi));
- return 1;
-}
-
-static int
ncvprobe(DEVPORT_PDEVICE devi)
{
int rv;
OpenPOWER on IntegriCloud