- Move stg_card_intr()'s prototype and definition inside appropriate
#ifdef's as it is is only used on older versions of FreeBSD. - #ifdef a local variable only used on older versions of FreeBSD.
This commit is contained in:
parent
f2a4379534
commit
e01b490c7e
@ -92,10 +92,10 @@ extern struct stg_softc *stgdata[];
|
||||
static int stgprobe(DEVPORT_PDEVICE devi);
|
||||
static int stgattach(DEVPORT_PDEVICE devi);
|
||||
|
||||
static int stg_card_intr __P((DEVPORT_PDEVICE));
|
||||
static void stg_card_unload __P((DEVPORT_PDEVICE));
|
||||
#if defined(__FreeBSD__) && __FreeBSD_version < 400001
|
||||
static int stg_card_init __P((DEVPORT_PDEVICE));
|
||||
static int stg_card_intr __P((DEVPORT_PDEVICE));
|
||||
#endif
|
||||
|
||||
#if defined(__FreeBSD__) && __FreeBSD_version >= 400001
|
||||
@ -301,6 +301,13 @@ stg_card_init(DEVPORT_PDEVICE devi)
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
static int
|
||||
stg_card_intr(DEVPORT_PDEVICE devi)
|
||||
{
|
||||
stgintr(DEVPORT_PDEVGET_SOFTC(devi));
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
static void
|
||||
@ -313,13 +320,6 @@ stg_card_unload(DEVPORT_PDEVICE devi)
|
||||
scsi_low_dettach(&sc->sc_sclow);
|
||||
}
|
||||
|
||||
static int
|
||||
stg_card_intr(DEVPORT_PDEVICE devi)
|
||||
{
|
||||
stgintr(DEVPORT_PDEVGET_SOFTC(devi));
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int
|
||||
stgprobe(DEVPORT_PDEVICE devi)
|
||||
{
|
||||
@ -341,7 +341,9 @@ stgprobe(DEVPORT_PDEVICE devi)
|
||||
static int
|
||||
stgattach(DEVPORT_PDEVICE devi)
|
||||
{
|
||||
#if defined(__FreeBSD__) && __FreeBSD_version < 400001
|
||||
int unit = DEVPORT_PDEVUNIT(devi);
|
||||
#endif
|
||||
struct stg_softc *sc;
|
||||
struct scsi_low_softc *slp;
|
||||
u_int32_t flags = DEVPORT_PDEVFLAGS(devi);
|
||||
|
Loading…
Reference in New Issue
Block a user