aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/lmc
diff options
context:
space:
mode:
authorAttilio Rao <attilio@FreeBSD.org>2009-05-30 18:39:22 +0000
committerAttilio Rao <attilio@FreeBSD.org>2009-05-30 18:39:22 +0000
commit56e13f2ac11f08d36dddde18cadce742b13d3ea1 (patch)
tree572753829028fcef2ee5dff0b310268eab636ae6 /sys/dev/lmc
parent06ecfb379a36c3f536d817d6cb062dab969db1d6 (diff)
Notes
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 1df51ad8b4d5..e03f33c414ae 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 10308e1ad786..fb34e03117dc 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 */