mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-05 09:14:03 +00:00
The ncv_card_intr function is only used in older versions of FreeBSD, so
move its prototype and definition inside the appropriate #ifdef's.
This commit is contained in:
parent
5d3e8edac4
commit
32c98125c9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=71467
@ -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
|
||||
@ -315,14 +323,6 @@ ncv_card_unload(DEVPORT_PDEVICE devi)
|
||||
scsi_low_dettach(&sc->sc_sclow);
|
||||
}
|
||||
|
||||
static int
|
||||
ncv_card_intr(DEVPORT_PDEVICE devi)
|
||||
{
|
||||
|
||||
ncvintr(DEVPORT_PDEVGET_SOFTC(devi));
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int
|
||||
ncvprobe(DEVPORT_PDEVICE devi)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user