summaryrefslogtreecommitdiffstats
path: root/sys/dev/lmc
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2009-05-30 18:39:22 +0000
committerattilio <attilio@FreeBSD.org>2009-05-30 18:39:22 +0000
commit30dba4157fd4e14bd76a371789fdabd94da83190 (patch)
tree572753829028fcef2ee5dff0b310268eab636ae6 /sys/dev/lmc
parent2c8e83d6b627484f401973d5611f8f1d6e8bc544 (diff)
downloadFreeBSD-src-30dba4157fd4e14bd76a371789fdabd94da83190.zip
FreeBSD-src-30dba4157fd4e14bd76a371789fdabd94da83190.tar.gz
Unbreak build.
Pointy hat to: attilio
Diffstat (limited to 'sys/dev/lmc')
-rw-r--r--sys/dev/lmc/if_lmc.c3
-rw-r--r--sys/dev/lmc/if_lmc.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/lmc/if_lmc.c b/sys/dev/lmc/if_lmc.c
index 1df51ad..e03f33c 100644
--- a/sys/dev/lmc/if_lmc.c
+++ b/sys/dev/lmc/if_lmc.c
@@ -3976,12 +3976,13 @@ fbsd_poll(struct ifnet *ifp, enum poll_cmd cmd, int count)
{
/* Last call -- reenable card interrupts. */
WRITE_CSR(TLP_INT_ENBL, TLP_INT_TXRX);
- return;
+ return 0;
}
#endif
sc->quota = count;
core_interrupt(sc, (cmd==POLL_AND_CHECK_STATUS));
+ return 0;
}
# endif /* (__FreeBSD__ && DEVICE_POLLING) */
diff --git a/sys/dev/lmc/if_lmc.h b/sys/dev/lmc/if_lmc.h
index 10308e1..fb34e03 100644
--- a/sys/dev/lmc/if_lmc.h
+++ b/sys/dev/lmc/if_lmc.h
@@ -1571,7 +1571,7 @@ static void core_interrupt(void *, int);
static void user_interrupt(softc_t *, int);
#if BSD
# if (defined(__FreeBSD__) && defined(DEVICE_POLLING))
-static void fbsd_poll(struct ifnet *, enum poll_cmd, int);
+static int fbsd_poll(struct ifnet *, enum poll_cmd, int);
# endif
static intr_return_t bsd_interrupt(void *);
#endif /* BSD */
OpenPOWER on IntegriCloud