From 1442e82d0811926d18a70ffc91612dfc985b869c Mon Sep 17 00:00:00 2001 From: jhb Date: Tue, 23 Jan 2001 22:09:04 +0000 Subject: Move nsp_card_intr()'s prototype and definition inside the appropriate #ifdef's as it is only used in older versions of FreeBSD. --- sys/dev/nsp/nsp_pccard.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'sys') 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; -- cgit v1.1