aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ncv
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2001-01-23 22:06:10 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2001-01-23 22:06:10 +0000
commit32c98125c9ee9909b5124e38fe19c58bfeedefd4 (patch)
treefeea3cd5e331c914452edc562136bd6e70cf4b90 /sys/dev/ncv
parent5d3e8edac4a1da21ed835754bc2f28e5beb8b54a (diff)
downloadsrc-32c98125c9ee9909b5124e38fe19c58bfeedefd4.tar.gz
src-32c98125c9ee9909b5124e38fe19c58bfeedefd4.zip
The ncv_card_intr function is only used in older versions of FreeBSD, so
move its prototype and definition inside the appropriate #ifdef's.
Notes
Notes: svn path=/head/; revision=71467
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 0ba9894eaa00..a7ac71275e93 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;