1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-05 09:14:03 +00:00

Move nsp_card_intr()'s prototype and definition inside the appropriate

#ifdef's as it is only used in older versions of FreeBSD.
This commit is contained in:
John Baldwin 2001-01-23 22:09:04 +00:00
parent acf5cad5aa
commit f5f7ddc668
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=71470

View File

@ -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
@ -312,13 +319,6 @@ nsp_card_unload(DEVPORT_PDEVICE devi)
scsi_low_dettach(&sc->sc_sclow);
}
static int
nsp_card_intr(DEVPORT_PDEVICE devi)
{
nspintr(DEVPORT_PDEVGET_SOFTC(devi));
return 1;
}
static int
nspprobe(DEVPORT_PDEVICE devi)
{