diff options
author | jhb <jhb@FreeBSD.org> | 2001-01-23 22:09:04 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-01-23 22:09:04 +0000 |
commit | 1442e82d0811926d18a70ffc91612dfc985b869c (patch) | |
tree | 65c04bde0dfb2aaab08dc1698b619f52f307a37a /sys/dev/nsp | |
parent | 3ed8c05491ed7bad4b4f323988a8f0d3e4f4cfa5 (diff) | |
download | FreeBSD-src-1442e82d0811926d18a70ffc91612dfc985b869c.zip FreeBSD-src-1442e82d0811926d18a70ffc91612dfc985b869c.tar.gz |
Move nsp_card_intr()'s prototype and definition inside the appropriate
#ifdef's as it is only used in older versions of FreeBSD.
Diffstat (limited to 'sys/dev/nsp')
-rw-r--r-- | sys/dev/nsp/nsp_pccard.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/nsp/nsp_pccard.c b/sys/dev/nsp/nsp_pccard.c index 9d3473d..2603ceb 100644 --- a/sys/dev/nsp/nsp_pccard.c +++ b/sys/dev/nsp/nsp_pccard.c @@ -88,10 +88,10 @@ extern struct nsp_softc *nspdata[]; static int nspprobe(DEVPORT_PDEVICE devi); static int nspattach(DEVPORT_PDEVICE devi); -static int nsp_card_intr __P((DEVPORT_PDEVICE)); static void nsp_card_unload __P((DEVPORT_PDEVICE)); #if defined(__FreeBSD__) && __FreeBSD_version < 400001 static int nsp_card_init __P((DEVPORT_PDEVICE)); +static int nsp_card_intr __P((DEVPORT_PDEVICE)); #endif #if defined(__FreeBSD__) && __FreeBSD_version >= 400001 @@ -300,6 +300,13 @@ nsp_card_init(DEVPORT_PDEVICE devi) return (0); } + +static int +nsp_card_intr(DEVPORT_PDEVICE devi) +{ + nspintr(DEVPORT_PDEVGET_SOFTC(devi)); + return 1; +} #endif static void @@ -313,13 +320,6 @@ nsp_card_unload(DEVPORT_PDEVICE devi) } static int -nsp_card_intr(DEVPORT_PDEVICE devi) -{ - nspintr(DEVPORT_PDEVGET_SOFTC(devi)); - return 1; -} - -static int nspprobe(DEVPORT_PDEVICE devi) { int rv; |