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:
parent
acf5cad5aa
commit
f5f7ddc668
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user